Initializing Tensors
问题 tf_coo = tf.SparseTensor(indices=np.array([[0, 0, 0, 1, 1, 2, 3, 9], [1, 4, 9, 9, 9, 9, 9, 9]]).T, values=[1, 2, 3, 5,1,1,1,1], shape=[10, 10]) I get the error message InvalidArgumentError (see above for traceback): indices[4] = [1,9] is repeated [[Node: SparseToDense = SparseToDense[T=DT_INT32, Tindices=DT_INT64, validate_indices=true, _device="/job:localhost/replica:0/task:0/cpu:0"](SparseTensor/indices, SparseToDense/output_shape, SparseTensor/values, SparseToDense/default_value)]] Isn't