Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: SparseMatMul

#include <math_ops.h>

행렬 "a"에 행렬 "b"를 합니다.

요약

입력은 2 차원 행렬이어야하며 "a"의 내부 차원은 "b"의 외부 차원과 일치해야합니다. "a"와 "b"는 모두 SparseTensor 아닌 Tensor 여야합니다. 이 연산은 "a"또는 "b"중 적어도 하나가 0 값의 비율이 크다는 점에서 희소 한 경우에 최적화됩니다. 한 플랫폼에서 이것을 사용하는 손익분기 점 대 조밀 행렬 곱셈은 희소 행렬에서 30 % 0 값이었습니다.

이 연산의 그래디언트 계산은 그래디언트가 Relu 에서 나올 때 입력 그래디언트의 희소성을 이용합니다.

인수 :

보고:

생성자와 소멸자

SparseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b)
SparseMatMul (const :: tensorflow::Scope & scope, :: tensorflow::Input a, :: tensorflow::Input b, const SparseMatMul::Attrs & attrs)

공용 속성

operation
product

공공 기능

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

공개 정적 함수

AIsSparse (bool x)
BIsSparse (bool x)
TransposeA (bool x)
TransposeB (bool x)

구조체

tensorflow :: ops :: SparseMatMul :: Attrs

SparseMatMul에 대한 선택적 속성 설정자.

공용 속성

조작

Operation operation

생성물

::tensorflow::Output product

공공 기능

SparseMatMul

 SparseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a,
  ::tensorflow::Input b
)

SparseMatMul

 SparseMatMul(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input a,
  ::tensorflow::Input b,
  const SparseMatMul::Attrs & attrs
)

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const 

공개 정적 함수

AIsSparse

Attrs AIsSparse(
  bool x
)

BIsSparse

Attrs BIsSparse(
  bool x
)

TransposeA

Attrs TransposeA(
  bool x
)

조옮김 B

Attrs TransposeB(
  bool x
)