classScale[T] extends KerasLayer[Tensor[T], Tensor[T], T] with IdentityOutputShape
Scale is the combination of CMul and CAdd.
Computes the element-wise product of the input and weight,
with the shape of the weight "expand" to match the shape of the input.
Similarly, perform an expanded bias and perform an element-wise add.
When you use this layer as the first layer of a model, you need to provide
the argument inputShape (a Single Shape, does not include the batch dimension).
Remark: This layer is from Torch and wrapped in Keras style.
T
The numeric type of parameter(e.g. weight, bias). Only support float/double now.
Scale is the combination of CMul and CAdd.
Computes the element-wise product of the input and weight, with the shape of the weight "expand" to match the shape of the input. Similarly, perform an expanded bias and perform an element-wise add.
When you use this layer as the first layer of a model, you need to provide the argument inputShape (a Single Shape, does not include the batch dimension).
Remark: This layer is from Torch and wrapped in Keras style.
The numeric type of parameter(e.g. weight, bias). Only support float/double now.