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

Run recognize_digits and understand_sentiment demo with fault tolerant mode. #343

Merged
merged 4 commits into from
Oct 10, 2017

Conversation

wanghaoshuang
Copy link

fix #342

@wanghaoshuang
Copy link
Author

@Yancey1989 先帮我看下配置是否有问题?先不要approve.



# NOTE: must change this to your own username on paddlecloud.
USERNAME = "wanghaoshuang@baidu.com"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not use specific username.

8192, "train")
common.convert(TEST_FILES_PATH,
paddle.dataset.mnist.test(),
1, "test")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line_count=1 is so small, this will generate too much small files..

@Yancey1989
Copy link
Collaborator

GPU mode error:

  File "./train_ft.py", line 169, in <module>
    main()
  File "./train_ft.py", line 117, in main
    predict = convolutional_neural_network(images)
  File "./train_ft.py", line 86, in convolutional_neural_network
    act=paddle.activation.Relu())
  File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/networks.py", line 228, in simple_img_conv_pool
    layer_attr=pool_layer_attr)
  File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/default_decorators.py", line 53, in __wrapper__
    return func(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 381, in wrapper
    return method(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/paddle/trainer_config_helpers/layers.py", line 2612, in img_pool_layer
    "only (Cudnn)AvgPooling, (Cudnn)MaxPooling are supported"
AssertionError: only (Cudnn)AvgPooling, (Cudnn)MaxPooling are supported

Copy link
Collaborator

@typhoonzero typhoonzero left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The bug when running on paddle cloud will be fixed soon. Merge this first.

@typhoonzero typhoonzero merged commit 4b36d38 into PaddlePaddle:develop Oct 10, 2017
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

Successfully merging this pull request may close these issues.

Run recognize_digits and understand_sentiment demo with fault tolerant mode.
3 participants