tensorflow::ops::SerializeManySparse

#include <sparse_ops.h>

Chuyển đổi một SparseTensor N minibatch thành một đối tượng Tensor [N, 3] .

Bản tóm tắt

Đối SparseTensor phải có hạng R lớn hơn 1, và chiều đầu tiên được coi là chiều của minibatch. Các phần tử của SparseTensor phải được sắp xếp theo thứ tự tăng dần của chiều đầu tiên này. Các đối tượng SparseTensor được tuần tự hóa đưa vào mỗi hàng của serialized_sparse sẽ có hạng R-1 .

Kích thước minibatch N được trích xuất từ sparse_shape[0] .

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • sparse_indices: 2 chiều. Các indices của SparseTensor minibatch.
  • sparse_values: 1 chiều. Các values của SparseTensor trong minibatch.
  • sparse_shape: 1 chiều. Hình shape của SparseTensor minibatch.

Các thuộc tính tùy chọn (xem Attrs ):

  • out_type: dtype được sử dụng để tuần tự hóa; các kiểu được hỗ trợ là string (mặc định) và variant .

Trả về:

  • Output : Tensor serialized_sparse.

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

SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape)
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)

Thuộc tính công khai

operation
serialized_sparse

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

OutType (DataType x)

Cấu trúc

tensorflow::ops::SerializeManySparse::Attrs

Các phương thức thiết lập thuộc tính tùy chọn cho SerializeManySparse .

Thuộc tính công khai

hoạt động

Operation operation

serialized_sparse

::tensorflow::Output serialized_sparse

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

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::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

OutType

Attrs OutType(
  DataType x
)