tensorflow::ops::ImmutableConst

#include <array_ops.h>

Trả về tensor bất biến từ vùng nhớ.

Bản tóm tắt

Phương pháp triển khai hiện tại sử dụng memmap để ánh xạ tensor từ một tệp tin.

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • dtype: Kiểu dữ liệu của tensor được trả về.
  • hình dạng: Hình dạng của tensor được trả về.
  • memory_region_name: Tên của vùng nhớ chỉ đọc được tensor sử dụng, xem NewReadOnlyMemoryRegionFromFile trong tensorflow::Env.

Trả về:

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

ImmutableConst (const :: tensorflow::Scope & scope, DataType dtype, PartialTensorShape shape, StringPiece memory_region_name)

Thuộc tính công khai

operation
tensor

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

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

Thuộc tính công khai

hoạt động

Operation operation

tensor

::tensorflow::Output tensor

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

Hằng số bất biến

 ImmutableConst(
  const ::tensorflow::Scope & scope,
  DataType dtype,
  PartialTensorShape shape,
  StringPiece memory_region_name
)

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const