Skip to content

Comments

Update the ResNet model for TensorFlow.#36

Merged
qingqing01 merged 5 commits intodzhwinter:masterfrom
qingqing01:master
Jan 5, 2018
Merged

Update the ResNet model for TensorFlow.#36
qingqing01 merged 5 commits intodzhwinter:masterfrom
qingqing01:master

Conversation

@qingqing01
Copy link
Collaborator

@qingqing01 qingqing01 commented Dec 27, 2017

Fix #28

"""Strided 2-D convolution with explicit padding."""
# The padding is consistent and is based only on `kernel_size`, not on the
# dimensions of `inputs` (as opposed to using `tf.layers.conv2d` alone).
# This is consistent with PaddlePaddle.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

print(
"Pass = %d, Train performance = %f imgs/s, Test accuracy = %f\n"
%
(pass_id, num_samples / train_elapsed, np.mean(test_accs)))
Copy link
Collaborator

Choose a reason for hiding this comment

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

test这一块写成一个函数是不是更合适些, for pass_id in range(args.pass_num):这个循环体显得很长

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done.

@chengduoZH
Copy link
Collaborator

LGTM++

@qingqing01 qingqing01 merged commit 93babe9 into dzhwinter:master Jan 5, 2018
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