Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feedInputs for TensorSpace model #172

Closed
syt123450 opened this issue Dec 16, 2018 · 0 comments
Closed

feedInputs for TensorSpace model #172

syt123450 opened this issue Dec 16, 2018 · 0 comments
Assignees

Comments

@syt123450
Copy link
Member

syt123450 commented Dec 16, 2018

Add feedInputs for model. TensorSpace model load a pre-trained tfjs model for prediction. Pre-trained model may have multi-inputs, however, TensorSpace model may only visualize some of them, use feedInputs to configure it.

For example, ACGAN's generative model, has two inputs random data ( tf.randomNormal([1, 100]) ) and label ( tf.randomNromal([1, 1]) ), if we only want to visualize the random data, we can config model like:

let model = TSP.models.Sequential({
    feedInputs: [ 0 ]
});

0 means the first applied input. In this example, as pre-trained model has two inputs, default to feedInputs: [ 0, 1 ].

@syt123450 syt123450 self-assigned this Dec 16, 2018
@syt123450 syt123450 changed the title feedInputs for model feedInputs for TensorSpace model Dec 16, 2018
syt123450 added a commit that referenced this issue Dec 16, 2018
# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

1 participant