TensorFlowModel Class

Definition

This class holds the information related to TensorFlow model and session. It provides some convenient methods to query model schema as well as creation of TensorFlowEstimator object.

C#
public sealed class TensorFlowModel : IDisposable
C#
public sealed class TensorFlowModel
Inheritance
TensorFlowModel
Implements

Methods

Dispose()
GetInputSchema()

Get DataViewSchema for only those nodes which are marked "Placeholder" in the TensorFlow model. This method is convenient for exploring the model input(s) in case TensorFlow graph is very large.

GetModelSchema()

Get DataViewSchema for complete model. Every node in the TensorFlow model will be included in the DataViewSchema object.

ScoreTensorFlowModel(String, String, Boolean)

Scores a dataset using a pre-trained TensorFlow model.

ScoreTensorFlowModel(String[], String[], Boolean)

Scores a dataset using a pre-trained TensorFlow model.

Applies to

Product Versions
ML.NET 1.2.0, 1.3.1, 1.4.0, 1.5.0, 1.6.0, 1.7.0, 2.0.0, 3.0.0, 4.0.0, Preview