java
java copied to clipboard
Do we support SparseOutput?
HI : for sparse tensor ,I think we need SparseOutput which implement from Output[T], but I found in the package org.tensorflow ,final class Output<T extends TType> implements Operand<T> ,Output class can not inherit 。 I don't know why.
like org.tensorflow.SparseTensor
Right now, dense tensors inside a sparse tensor (i.e. the indices, values and denseShape) needs to be passed individually by the user to one of the sparse ops that we have (as you see [here], all sparse ops expect individual tensors to be passed as operands).
Eventually we'll hide this conversion to the user by wrapping up the sparse ops to accept a single sparse operand (or sparse output) but we are not there yet, all contributions are welcome if you think you can tackle this one!