Versioned name: ConvertLike-1
Category: type conversion
Short description: Operation converts all elements of the 1st input tensor to a type of elements of 2nd input tensor.
Attributes:
No attributes available.
Inputs
data
- A tensor of type T1. Required.like
- A tensor of type T2. Required.Outputs
like
tensor and the same shape with data
tensor.Types
Detailed description
Conversion from one supported type to another supported type is always allowed. User must be aware of precision loss and value change caused by range difference between two types. For example, a 32-bit float 3.141592 may be round to a 32-bit int 3.
a - data
input tensor, b - like
input tensor.
Examples
Example 1