Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

How to make a placeholder with changed batches for the dnc state? thanks #42

Open
hecong97 opened this issue Sep 25, 2019 · 0 comments
Open

Comments

@hecong97
Copy link

hecong97 commented Sep 25, 2019

I wonder to know how can I create placeholders like dnc_core.initial_state(batch_size=n) with the batch_size n changed in trainning.

dnc_core = dnc.DNC(...)
initial_core_state = dnc_core.initial_state(batch_size=1)
core_state_placeholders = snt.nest.map(lambda t: tf.placeholder(t.dtype, shape=t.shape),
initial_core_state)

When I create the graph,the shape of initial_state seems be fixed with the batch_size .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant