tensorflow::ops::Cast

#include <math_ops.h>

Chuyển đổi x thuộc kiểu SrcT sang y thuộc kiểu DstT.

Bản tóm tắt

Luận điểm:

Trả về:

Hàm khởi tạo và hàm hủy

Cast (const :: tensorflow::Scope & scope, :: tensorflow::Input x, DataType DstT)
Cast (const :: tensorflow::Scope & scope, :: tensorflow::Input x, DataType DstT, const Cast::Attrs & attrs)

Thuộc tính công khai

operation
y

Chức năng công cộng

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Các hàm tĩnh công khai

Truncate (bool x)

Cấu trúc

tensorflow::ops::Cast::Attrs

Các thiết lập thuộc tính tùy chọn cho Cast .

Thuộc tính công khai

hoạt động

Operation operation

y

::tensorflow::Output y

Chức năng công cộng

Dàn diễn viên

 Cast(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  DataType DstT
)

Dàn diễn viên

 Cast(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  DataType DstT,
  const Cast::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

Cắt bớt

Attrs Truncate(
  bool x
)