Skip to content

doc: specify that input_shape in no longer required for torch 2.0 mod… #4159

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

Merged
merged 13 commits into from
Oct 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/sagemaker/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -1101,7 +1101,9 @@ def compile(
input_shape (dict): Specifies the name and shape of the expected
inputs for your trained model in json dictionary form, for
example: {'data': [1,3,1024,1024]}, or {'var1': [1,1,28,28],
'var2': [1,1,28,28]}
'var2': [1,1,28,28]}. Input shape is optional for those models traced with torch 2.0,
see pytorch section of this document for detail:
https://docs.aws.amazon.com/sagemaker/latest/dg/neo-compilation-preparing-model.html
output_path (str): Specifies where to store the compiled model
role (str): Execution role
tags (list[dict]): List of tags for labeling a compilation job. For
Expand Down