tensor akışı:: işlem:: SeyrekMatMul

#include <math_ops.h>

"a" matrisini "b" matrisiyle çarpın .

Özet

Girdiler iki boyutlu matrisler olmalı ve "a"nın iç boyutu "b"nin dış boyutuyla eşleşmelidir. Hem "a" hem de "b" SparseTensor değil Tensor olmalıdır. Bu işlem, "a" veya "b"den en az birinin seyrek olduğu, yani büyük oranda sıfır değerlerine sahip olduğu durum için optimize edilmiştir. Bunu bir platformda yoğun matris çarpımına karşı kullanmanın başabaş noktası, seyrek matriste %30 sıfır değeriydi.

Bu işlemin gradyan hesaplaması, yalnızca bu degrade bir Relu'dan geldiğinde giriş degradesindeki seyreklikten yararlanacaktır.

Argümanlar:

İadeler:

  • Output : Çarpım tensörü.

Yapıcılar ve Yıkıcılar

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)

Genel özellikler

operation
product

Kamu işlevleri

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

Genel statik işlevler

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

Yapılar

tensorflow:: ops:: SparseMatMul:: Öznitelikler

SparseMatMul için isteğe bağlı öznitelik ayarlayıcılar.

Genel özellikler

operasyon

Operation operation

ürün

::tensorflow::Output product

Kamu işlevleri

SeyrekMatMul

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

SeyrekMatMul

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

düğüm

::tensorflow::Node * node() const 

operatör::tensorflow::Giriş

 operator::tensorflow::Input() const 

operatör::tensorflow::Çıktı

 operator::tensorflow::Output() const 

Genel statik işlevler

AI'ler Seyrek

Attrs AIsSparse(
  bool x
)

BI'ler Seyrek

Attrs BIsSparse(
  bool x
)

A'yı devrik

Attrs TransposeA(
  bool x
)

B'yi devrik

Attrs TransposeB(
  bool x
)