Skip to content

ModelBuilder cannot call register() method Without Setting framework and framework_version Attributes #5391

Description

@plockxng

Issue

Hello SageMaker Python SDK team,

It seems like based on this notebook, I can register a model directly without having to "build" it:

Image

What I'm observing is that it's missing a framework and framework_version attribute:

error 1: AttributeError: 'ModelBuilder' object has no attribute 'framework'
error 2: AttributeError: 'ModelBuilder' object has no attribute 'framework_version'

This can be circumvented by setting these explicitly like so before calling the model_builder.register() method, but is there any way to remove this dependency, it seems unnecessary:

model_builder.framework = None
model_builder.framework_version = None

Resolution

Don't want to set these attributes explicitly, and most likely shouldn't be set by an end user.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions