Exemple #1
0
 def construct(self, indices, values):
     x = SparseTensor(indices, values, self.dense_shape)
     return x.values(), x.indices(), x.dense_shape()
Exemple #2
0
 def construct(self, indices, values):
     sparse = SparseTensor(indices, values, self.dense_shape)
     return self.sparse_to_dense(sparse)
Exemple #3
0
 def construct(self, indices, values):
     ret = (SparseTensor(indices, values, self.dense_shape), )
     return ret[0]