{ }
View source on GitHub |
Upsampling layer for 3D inputs.
Inherits From: Layer
, Operation
tf.keras.layers.UpSampling3D(
size=(2, 2, 2), data_format=None, **kwargs
)
Repeats the 1st, 2nd and 3rd dimensions
of the data by size[0]
, size[1]
and size[2]
respectively.
Example:
input_shape = (2, 1, 2, 1, 3)
x = np.ones(input_shape)
y = keras.layers.UpSampling3D(size=(2, 2, 2))(x)
y.shape
(2, 2, 4, 2, 3)
Input shape | |
---|---|
5D tensor with shape:
|
Output shape | |
---|---|
5D tensor with shape:
|
Methods
from_config
@classmethod
from_config( config )
Creates a layer from its config.
This method is the reverse of get_config
,
capable of instantiating the same layer from the config
dictionary. It does not handle layer connectivity
(handled by Network), nor weights (handled by set_weights
).
Args | |
---|---|
config
|
A Python dictionary, typically the output of get_config. |
Returns | |
---|---|
A layer instance. |
symbolic_call
symbolic_call(
*args, **kwargs
)