The inputs must be two-dimensional matrices and the inner dimension of "a" must
match the outer dimension of "b". Both "a" and "b" must be Tensors not
SparseTensors. This op is optimized for the case where at least one of "a" or
"b" is sparse, in the sense that they have a large proportion of zero values.
The breakeven for using this versus a dense matrix multiply on one platform was
30% zero values in the sparse matrix.
The gradient computation of this operation will only take advantage of sparsity
in the input gradient when that gradient comes from a Relu.
Args
a
A Tensor. Must be one of the following types: float32, bfloat16.
b
A Tensor. Must be one of the following types: float32, bfloat16.
[null,null,["Last updated 2024-04-26 UTC."],[],[],null,["# tf.compat.v1.sparse_matmul\n\n\u003cbr /\u003e\n\nMultiply matrix \"a\" by matrix \"b\". (deprecated) \n\n tf.compat.v1.sparse_matmul(\n a: Annotated[Any, ../../../tf/raw_ops/Any],\n b: Annotated[Any, ../../../tf/raw_ops/Any],\n transpose_a: bool = False,\n transpose_b: bool = False,\n a_is_sparse: bool = False,\n b_is_sparse: bool = False,\n name=None\n ) -\u003e Annotated[Any, ../../../tf/raw_ops/Any]\n\n| **Deprecated:** THIS FUNCTION IS DEPRECATED. It will be removed in a future version. Instructions for updating: Use [`tf.linalg.matmul`](../../../tf/linalg/matmul) instead\n\nThe inputs must be two-dimensional matrices and the inner dimension of \"a\" must\nmatch the outer dimension of \"b\". Both \"a\" and \"b\" must be `Tensor`s not\n`SparseTensor`s. This op is optimized for the case where at least one of \"a\" or\n\"b\" is sparse, in the sense that they have a large proportion of zero values.\nThe breakeven for using this versus a dense matrix multiply on one platform was\n30% zero values in the sparse matrix.\n\nThe gradient computation of this operation will only take advantage of sparsity\nin the input gradient when that gradient comes from a Relu.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|---------------|------------------------------------------------------------------------|\n| `a` | A `Tensor`. Must be one of the following types: `float32`, `bfloat16`. |\n| `b` | A `Tensor`. Must be one of the following types: `float32`, `bfloat16`. |\n| `transpose_a` | An optional `bool`. Defaults to `False`. |\n| `transpose_b` | An optional `bool`. Defaults to `False`. |\n| `a_is_sparse` | An optional `bool`. Defaults to `False`. |\n| `b_is_sparse` | An optional `bool`. Defaults to `False`. |\n| `name` | A name for the operation (optional). |\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Returns ------- ||\n|---|---|\n| A `Tensor` of type `float32`. ||\n\n\u003cbr /\u003e"]]