tf.to_int64

  • 2019 年 10 月 28 日
  • 筆記

版權聲明:本文為部落客原創文章,遵循 CC 4.0 BY-SA 版權協議,轉載請附上原文出處鏈接和本聲明。

本文鏈接:https://blog.csdn.net/weixin_36670529/article/details/102711104

Casts a tensor to type int64. (deprecated)

Aliases:

tf.to_int64(      x,      name='ToInt64'  )

Warning: THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use tf.cast instead.

Args:

  • x: A Tensor or SparseTensor or IndexedSlices.
  • name: A name for the operation (optional).

Returns:

A Tensor or SparseTensor or IndexedSlices with same shape as x with type int64.

Raises:

  • TypeError: If x cannot be cast to the int64.