Is sparse tensor multiplication implemented in TensorFlow?

前端 未结 5 977
夕颜
夕颜 2020-12-13 14:11

Multiplication of sparse tensors with themselves or with dense tensors does not seem to work in TensorFlow. The following example



        
5条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-13 14:54

    It seems that

    tf.sparse_matmul(
        a,
        b,
        transpose_a=None,
        transpose_b=None,
        a_is_sparse=None,
        b_is_sparse=None,
        name=None
    )
    

    is not for multiplication of two SparseTensors.

    a and b are Tensors not SparseTensors. And I have tried that, it is not working with SparseTensors.

提交回复
热议问题