RawConstantOfShape
Description
Generate a tensor with given value and shape.
Documentation illustration (illustration unavailable in the archive).
Input parameters
specified_outputs_name : array, this parameter lets you manually assign custom names to the output tensors of a node.
input (heterogeneous) – T1 : object, 1D tensor. The shape of the expected output tensor. If empty tensor is given, the output would be a scalar. All values must be >= 0.
Parameters : cluster,
raw_data : array, stores the initializer values in a serialized byte buffer. The data is always flattened into a one-dimensional sequence of bytes, regardless of the target tensor shape.
dtype : enum, defines the actual element type stored in the raw_data buffer.
name (optional) : string, name of the node.
Documentation illustration (illustration unavailable in the archive).
Output parameters
output (heterogeneous) – T2 : object, output tensor of shape specified by ‘input’.
Type Constraints
T1 in (tensor(int64)) : Constrain input types.
T2 in (tensor(bfloat16), tensor(bool), tensor(double), tensor(float), tensor(float16), tensor(float8e4m3fn),
tensor(float8e4m3fnuz), tensor(float8e5m2), tensor(float8e5m2fnuz), tensor(int16), tensor(int32), tensor(int64), tensor(int8), tensor(uint16), tensor(uint32), tensor(uint64), tensor(uint8)) : Constrain output types to be numerics.
Example
All these exemples are snippets PNG, you can drop these Snippet onto the block diagram and get the depicted code added to your VI (Do not forget to install Deep Learning library to run it).
