google-deepmind / google-deepmind/dnc

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

Open
#42 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.5k
Forks
446
PR merge metrics
No merged PRs in 30d

Description

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 .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.