26 const string& =
"normalization_layer_3d");
41 void set(Index = 0, Index = 0,
const string& =
"normalization_layer_3d");
51 Index sequence_length = 0;
52 Index embedding_dimension = 0;
56 enum Forward {Input, Means, StandardDeviations, NormalizedInput, Output};
vector< TensorSpec > get_forward_specs(Index batch_size) const override
Returns the tensor specifications used during forward propagation.
Shape get_output_shape() const override
Returns the output tensor shape (same as input).
Index get_embedding_dimension() const
Definition normalization_layer_3d.h:35
Shape get_input_shape() const override
Returns the input tensor shape (sequence_length, embedding_dimension).
Index get_sequence_length() const
Definition normalization_layer_3d.h:34
void set(Index=0, Index=0, const string &="normalization_layer_3d")
Reconfigures the layer with new sequence length, embedding dimension and name.
void read_JSON_body(const Json *) override
Reads the layer configuration from a JSON node.
void set_input_shape(const Shape &) override
Updates the layer for a new input shape.
Normalization3d(const Shape &=Shape({0, 0}), const string &="normalization_layer_3d")
Constructs a 3D layer normalization layer.
Definition adaptive_moment_estimation.h:14
Layer normalization with learnable scale/shift, applied across the embedding dimension.
Definition operators.h:530
Fixed-capacity small-vector describing tensor dimensions (rank up to MaxRank).
Definition tensor_utilities.h:42