-
Notifications
You must be signed in to change notification settings - Fork 86
Conversation
This PR needs Approvals as follows.
Please choose reviewers and requet reviews! Click to see how to approve each reviewsYou can approve this PR by triggered comments as follows.
See all trigger commentsPlease replace [Target] to review target
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readability Approval (reverse-shadowing)
Nice bug fixing!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OA
blueoil/cmd/train.py
Outdated
with open(checkpoint) as stream: | ||
data = yaml.load(stream) | ||
with tf.io.gfile.GFile(checkpoint) as stream: | ||
data = yaml.load(stream, Loader=yaml.FullLoader) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this loader change related to GFile change?
It seems there are a few other use of yaml.load
within blueoil thus maybe we should fix all in another diff.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, this is not directly related.
I just noticed that load
method has been changed to specify Loader
.
Let me dedicate them as you commented.
https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Readability Approval
/ready |
⏳Merge job is queued... |
What this patch does to fix the issue.
When
OUTPUT_DIR=gs://xxxx/xxx
,Training cannot be kept running.
This is critical for gcs/s3 users