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