_convert_tensor_precision
convert_tensor_precision
¶
Adjust the input data precision based of environment precision.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
tensor |
Tensor
|
The input value. |
required |
Returns:
Type | Description |
---|---|
Tensor
|
The precision adjusted data(16 bit for mixed precision, 32 bit otherwise). |