The dense tensor b may be either a scalar; otherwise a must be a rank-3
SparseMatrix; in this case b must be shaped [batch_size, 1, 1] and the
multiply operation broadcasts.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-26 UTC."],[],[],null,["# tf.raw_ops.SparseMatrixMul\n\n\u003cbr /\u003e\n\nElement-wise multiplication of a sparse matrix with a dense tensor.\n\n#### View aliases\n\n\n**Compat aliases for migration**\n\nSee\n[Migration guide](https://www.tensorflow.org/guide/migrate) for\nmore details.\n\n[`tf.compat.v1.raw_ops.SparseMatrixMul`](https://www.tensorflow.org/api_docs/python/tf/raw_ops/SparseMatrixMul)\n\n\u003cbr /\u003e\n\n tf.raw_ops.SparseMatrixMul(\n a, b, name=None\n )\n\nReturns a sparse matrix.\n\nThe dense tensor `b` may be either a scalar; otherwise `a` must be a rank-3\n`SparseMatrix`; in this case `b` must be shaped `[batch_size, 1, 1]` and the\nmultiply operation broadcasts.\n| **Note:** even if `b` is zero, the sparsity structure of the output does not change.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n| Args ---- ||\n|--------|--------------------------------------------------|\n| `a` | A `Tensor` of type `variant`. A CSRSparseMatrix. |\n| `b` | A `Tensor`. A dense tensor. |\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 `variant`. ||\n\n\u003cbr /\u003e"]]