Skip to content

SagemakerModel.transform() doesn't use model's sagemakerClient #28

Open
@harthur

Description

@harthur

If you create a new SageMakerModel instance (say, with fromModelS3Path()), you can pass in your own sagemakerClient. However, when you go to use the model after it's been created, transform() does not use that client to send prediction requests. It appears to hardcode a AmazonSageMakerRuntimeClientBuilder.defaultClient instead in RequestBatchIterator.

Pardon my ignorance, but is there a reason that it can't just pass the sagemakerClient through?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions