convert_to_tensor_and_cast¶
-
tfsnippet.ops.
convert_to_tensor_and_cast
(x, dtype=None)¶ Convert x into a
tf.Tensor
, and cast its dtype if required.Parameters: - x – The tensor to be converted into a
tf.Tensor
. - dtype (tf.DType) – The data type.
Returns: The converted and casted tensor.
Return type: tf.Tensor
- x – The tensor to be converted into a