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

'NameError: global name 'batch_size_tensor' is not defined' in Paddle/benchmark/fluid/models/stacked_dynamic_lstm.py #11353

Closed
sneaxiy opened this issue Jun 11, 2018 · 0 comments
Assignees

Comments

@sneaxiy
Copy link
Collaborator

sneaxiy commented Jun 11, 2018

When the stacked_dynamic_lstm is running, the error "global name 'batch_size_tensor' is not defined" occurs.

$ python fluid_benchmark.py --model stacked_dynamic_lstm --device GPU --gpus 1
----------- Configuration Arguments -----------
batch_size: 32
cpus: 1
data_format: NCHW
data_path:
data_set: flowers
device: GPU
gpus: 1
infer_only: False
iterations: 80
learning_rate: 0.001
memory_optimize: False
model: stacked_dynamic_lstm
no_test: False
pass_num: 100
profile: False
skip_batch_num: 5
update_method: local
use_cprof: False
use_fake_data: False
use_nvprof: False
use_reader_op: False

Cache file /root/.cache/paddle/dataset/imdb/aclImdb_v1.tar.gz not found, downloading http://ai.stanford.edu/%7Eamaas/data/sentiment/aclImdb_v1.tar.gz
[==================================================]Traceback (most recent call last):
File "fluid_benchmark.py", line 452, in
main()
File "fluid_benchmark.py", line 412, in main
train_args = list(model_def.get_model(args))
File "/Paddle/Paddle/benchmark/fluid/models/stacked_dynamic_lstm.py", line 113, in get_model
target_vars=[batch_acc, batch_size_tensor])
NameError: global name 'batch_size_tensor' is not defined

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

2 participants