|
Keraflow
Deep Learning for Python.
|
Expand dimension of the input tensor. More...
Public Member Functions | |
| def | __init__ |
Expand dimension of the input tensor.
Behaves like numpy.expand_dims().
(nb_samples, x, | y, ...)output_shape: (n+1)D,(nb_samples, x, 1, y, ...)` | def keraflow.layers.core.ExpandDims.__init__ | ( | self, | |
| axis, | |||
include_batch_dim = False, |
|||
| kwargs | |||
| ) |
| axis | int. The axis to expand dimension. |
| include_batch_dim | boolean. If true, axis=0 refers to the first dimension; otherwise, axis=0 refers to the second dimension(0->1, 1->2...). |
| kwargs | see Layer.__init__. |