tensorflow::ops::SparseTensorDenseMatMul

#include <sparse_ops.h>

Nhân ma trận thưa (hạng 2) "A" với ma trận dày đặc "B".

Bản tóm tắt

Không có bước kiểm tra tính hợp lệ nào được thực hiện trên các chỉ số của A. Tuy nhiên, định dạng đầu vào sau đây được khuyến nghị để hoạt động tối ưu:

Nếu adjoint_a == false: A nên được sắp xếp theo thứ tự tăng dần từ điển. Hãy sử dụng SparseReorder nếu bạn không chắc chắn. Nếu adjoint_a == true: A nên được sắp xếp theo thứ tự tăng dần của chiều 1 (tức là thứ tự "cột chính" thay vì thứ tự "hàng chính").

Luận điểm:

  • phạm vi: Một đối tượng Phạm vi
  • a_indices: 2 chiều. Các indices của SparseTensor , kích thước [nnz, 2] .
  • a_values: 1-D. Các values của SparseTensor , kích thước [nnz] Vector.
  • a_shape: 1-D. Hình shape của SparseTensor , kích thước [2] Vector.
  • b: 2 chiều. Một ma trận dày đặc.

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

  • adjoint_a: Sử dụng ma trận liên hợp của A trong phép nhân ma trận. Nếu A là số phức, thì đó là transpose(conj(A)). Nếu không thì đó là transpose(A).
  • adjoint_b: Sử dụng ma trận liên hợp của B trong phép nhân ma trận. Nếu B là số phức, thì là transpose(conj(B)). Nếu không thì là transpose(B).

Trả về:

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

SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b)
SparseTensorDenseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a_indices, :: tensorflow::Input a_values, :: tensorflow::Input a_shape, :: tensorflow::Input b, const SparseTensorDenseMatMul::Attrs & attrs)

Thuộc tính công khai

operation
product

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

AdjointA (bool x)
AdjointB (bool x)

Cấu trúc

tensorflow::ops::SparseTensorDenseMatMul::Attrs

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

Thuộc tính công khai

hoạt động

Operation operation

sản phẩm

::tensorflow::Output product

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

SparseTensorDenseMatMul

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b
)

SparseTensorDenseMatMul

 SparseTensorDenseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a_indices,
  ::tensorflow::Input a_values,
  ::tensorflow::Input a_shape,
  ::tensorflow::Input b,
  const SparseTensorDenseMatMul::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

Liên hợpA

Attrs AdjointA(
  bool x
)

AdjointB

Attrs AdjointB(
  bool x
)