Skip to content

Deprecate TensorFlow "legacy mode" #1462

Closed
@laurenyu

Description

@laurenyu

Is your feature request related to a problem? Please describe.
Confusion around how to use the TensorFlow classes, e.g. #1406, #1444.

Describe the solution you'd like
The plan is to make TensorFlow, TensorFlowModel, and TensorFlowPredictor all use the TF script mode/TFS images by default. (These are the images that currently correspond to TF 1.11-2.1.) This includes:

  • Remove legacy-mode parameters from the TensorFlow constructor, and document how to pass them as hyperparameters instead.
  • Remove outdated TensorBoard-related code.
  • Add a warning if framework_version < 1.11.
  • Deprecate script_mode and endpoint_type parameters so that there is only one "mode/type" going forward.
  • Move sagemaker.tensorflow.serving code to sagemaker.tensorflow.model (as suggested above).
  • Remove outdated serializers/deserializers and copied TFS source code.
  • Revise documentation, including removing the warnings about the change in training script format from the TensorFlow (and MXNet) documentation. Ideally, it would be nice to remove usage of the term "script mode" as much as possible because that is the only mode for training with frameworks on SageMaker now.

Describe alternatives you've considered
If there is high demand for "legacy mode" to stay, we could also just flip the defaults, and unify the serving classes.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions