Skip to content
This repository has been archived by the owner on Oct 18, 2023. It is now read-only.

Helper method to feed sparse arrays into TF #40

Open
nevillelyh opened this issue Mar 19, 2018 · 0 comments
Open

Helper method to feed sparse arrays into TF #40

nevillelyh opened this issue Mar 19, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@nevillelyh
Copy link
Contributor

We should add some convenience methods, maybe in TensorFlowExtras, to feed Featran FloatSparseArray and DoubleSparseArray into TensorFlow.

https://github.com/spotify/featran/blob/master/java/src/main/scala/com/spotify/featran/java/JavaOps.scala#L126

The feeding code might look like this:

runner
            .feed("input/raw_indices", Tensors.create(new long[]{0, 5, 9}))
            .feed("input/raw_shape", Tensors.create(new long[]{10}))
            .feed("input/raw_data", Tensors.create(new double[]{1.0, 2.0, 3.0}));
@nevillelyh nevillelyh added the enhancement New feature or request label Mar 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant