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

Fix bugs of training #667

Merged
merged 5 commits into from
Apr 8, 2020
Merged

Fix bugs of training #667

merged 5 commits into from
Apr 8, 2020

Conversation

XJDKC
Copy link
Member

@XJDKC XJDKC commented Apr 8, 2020

  • Fix bugs of buffering Mult.
  • Can train ResNet50 with batch size of 64 now.

@XJDKC
Copy link
Member Author

XJDKC commented Apr 8, 2020

There is another commit to be pushed.

@@ -161,6 +161,9 @@ Tensor Resize(const Tensor &in, const Shape &shape) {

// return new tensor
Tensor Tensor::AsType(const DataType type) {
CHECK(block() && block()->initialized() == true)
<< "the data of the tensor needs be initialized before casting to "
Copy link
Member

Choose a reason for hiding this comment

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

this cannot fix the error. need to update the test case to reverse the two lines.

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member Author

Choose a reason for hiding this comment

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

There seem to be many such cases in unit testing

@nudles nudles merged commit f3f6fe0 into apache:dev Apr 8, 2020
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.

2 participants