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

The initial values of the network_state for transformer_network #14

Open
Zed-Wu opened this issue Apr 7, 2023 · 0 comments
Open

The initial values of the network_state for transformer_network #14

Zed-Wu opened this issue Apr 7, 2023 · 0 comments

Comments

@Zed-Wu
Copy link

Zed-Wu commented Apr 7, 2023

I find that in the unit test (e.g., transformer_network_test.py), the network_state is randomly sampled as:

network_state = tensor_spec.sample_spec_nest(
        network.state_spec, outer_dims=[BATCH_SIZE])

If I want to do inference in my own environment, what are the initial values of the network_state?

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