-
Notifications
You must be signed in to change notification settings - Fork 1.2k
AttributeError in sagemaker.local.image #554
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
Labels
Comments
Hello @tyrion, Can you please provide a minimal repro for us to try? The image or dataset doesn't have to be provided. Thanks! |
Hello @ChoiByungWook, from sagemaker import get_execution_role
from sagemaker.estimator import Estimator
from sagemaker.local import LocalSession
role = get_execution_role()
session = LocalSession()
session.config = {'local': {'local_code': True,}}
est = Estimator(
image_name='nope',
output_path="file:///anything",
train_instance_type='local',
train_instance_count=1,
role=role,
sagemaker_session=session,
)
est.fit() |
4 tasks
The issue seems fixed to me Thank you @ChoiByungWook |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
On line 316 of
sagemaker.local.image
there is a reference tosagemaker.rl.estimator
but the module is not imported. Therefore we get an error:The fix is also not trivial, because if you try adding the needed import at the top of the file you incur in an import loop.
To trigger this code I created an estimator, passing to it an
output_path
starting with"file://"
and then called itsfit
method.The text was updated successfully, but these errors were encountered: