-
Notifications
You must be signed in to change notification settings - Fork 1.2k
fix: use correct TF version in empty framework_version warning #756
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
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -229,7 +229,7 @@ def __init__(self, training_steps=None, evaluation_steps=None, checkpoint_path=N | |
**kwargs: Additional kwargs passed to the Framework constructor. | ||
""" | ||
if framework_version is None: | ||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, TF_VERSION)) | ||
LOGGER.warning(fw.empty_framework_version_warning(TF_VERSION, self.LATEST_VERSION)) | ||
self.framework_version = framework_version or TF_VERSION | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Still you haven't changed TF_VERSION to LATEST_VERSION There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The initial reported issue is that TF_VERSION is set '1.11' and LATEST_VERSION is set '1.12'. TF_VERSION should be replaced by LATEST_VERSION. Or TF_VERSION should be updated to 1.12 There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I understand that the transition from having an updating default value to requiring |
||
|
||
super(TensorFlow, self).__init__(image_name=image_name, **kwargs) | ||
|
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.
self.LATEST_VERSION looks wrong to me as LATEST_VERSION is not class variable, it is defined outside the init.
It should be just LATEST_VERSION
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.
it's defined in the class
TensorFlow
:sagemaker-python-sdk/src/sagemaker/tensorflow/estimator.py
Lines 170 to 174 in 42c7f30
LATEST_VERSION
(withoutself
) would work only if it is defined outside of theTensorFlow
class: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.
Ok Thanks for the explanation.