|
8 | 8 | </summary>
|
9 | 9 | <remarks>
|
10 | 10 | <para>
|
11 |
| - The TensorflowTransform extracts the specified outputs from the operations computed on the graph (given the input(s)) using a pre-trained <a href="https://www.tensorflow.org">Tensorflow</a> model. |
12 |
| - The transform takes as input the Tensorflow model together with the names of the inputs to the model and names of the operations for which output values will be extracted from the model. |
| 11 | + The TensorFlowTransform extracts specified outputs using a pre-trained <a href="https://www.tensorflow.org">Tensorflow</a> model. |
| 12 | + The transform takes as inputs the pre-trained Tensorflow model, the names of the input nodes, and names of the output nodes whose values we want to extract. |
13 | 13 | </para>
|
14 | 14 |
|
15 | 15 | <para>
|
16 |
| - This transform requires the <a href="https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.ML.TensorFlow/0.5.0-preview-26830-5">Microsoft.ML.TensorFlow</a> nuget to be installed. |
17 |
| - The TensorflowTransform has following assumptions regarding the input, output and processing of data. |
| 16 | + This transform requires the <a href="https://dotnet.myget.org/feed/dotnet-core/package/nuget/Microsoft.ML.TensorFlow">Microsoft.ML.TensorFlow</a> nuget to be installed. |
| 17 | + The TensorFlowTransform has the following assumptions regarding input, output and processing of data. |
18 | 18 | </para>
|
19 | 19 | <list type="number">
|
20 | 20 | <item>
|
21 | 21 | <description>
|
22 |
| - The transform currently accepts the <a href="https://www.tensorflow.org/mobile/prepare_models">frozen TensorFlow model</a> file as input. |
| 22 | + For the input model, currently the TensorFlowTransform supports both the <a href="https://www.tensorflow.org/mobile/prepare_models">Frozen model</a> format and also the <a href="https://www.tensorflow.org/guide/saved_model#build_and_load_a_savedmodel">SavedModel</a> format. |
23 | 23 | </description>
|
24 | 24 | </item>
|
25 | 25 | <item>
|
26 | 26 | <description>The transform supports scoring only one example at a time.</description>
|
27 | 27 | </item>
|
28 | 28 | <item>
|
29 |
| - <description>The name of input column(s) should match the name of input(s) in Tensorflow model.</description> |
| 29 | + <description>The name of input column(s) should match the name of input(s) in TensorFlow model.</description> |
30 | 30 | </item>
|
31 | 31 | <item>
|
32 |
| - <description>The name of each output column should match one of the operations in the Tensorflow graph.</description> |
| 32 | + <description>The name of each output column should match one of the operations in the TensorFlow graph.</description> |
33 | 33 | </item>
|
34 | 34 | <item>
|
35 | 35 | <description>Currently, float and double are the only acceptable data types for input/output.</description>
|
36 | 36 | </item>
|
37 | 37 | <item>
|
38 |
| - Upon success, the transform will introduce a new column in <see cref="IDataView"/> corresponding to each output column specified. |
| 38 | + <description>Upon success, the transform will introduce a new column in <see cref="IDataView"/> corresponding to each output column specified.</description> |
39 | 39 | </item>
|
40 | 40 | </list>
|
41 | 41 |
|
|
50 | 50 | pipeline.Add(new ColumnCopier(("NumericImageVec", "Input");
|
51 | 51 | pipeline.Add(new TensorFlowScorer()
|
52 | 52 | {
|
53 |
| - ModelFile = model_location; |
54 |
| - InputColumns = new []{ "Input" }; |
55 |
| - OutputColumns = "Output" |
| 53 | + Model = model_location; |
| 54 | + InputColumns = new[] { "Input" }; |
| 55 | + OutputColumns = new[] { "Output" }; |
56 | 56 | }
|
57 | 57 | </code>
|
58 | 58 | </example>
|
59 | 59 | <example>
|
60 | 60 | <code language="csharp">
|
61 |
| - var pipeline = new LearningPipeline(seed: 1); |
62 |
| - pipeline.Add(new TextLoader(dataFile).CreateFrom<CifarData>(useHeader: false)); |
| 61 | + var pipeline = new Legacy.LearningPipeline(seed: 1); |
| 62 | + pipeline.Add(new Microsoft.ML.Legacy.Data.TextLoader(dataFile).CreateFrom<CifarData>(useHeader: false)); |
63 | 63 | pipeline.Add(new ImageLoader(("ImagePath", "ImageReal"))
|
64 | 64 | {
|
65 | 65 | ImageFolder = imageFolder
|
|
80 | 80 |
|
81 | 81 | pipeline.Add(new TensorFlowScorer()
|
82 | 82 | {
|
83 |
| - ModelFile = model_location, |
| 83 | + Model = model_location, |
84 | 84 | InputColumns = new[] { "Input" },
|
85 |
| - OutputColumns = "Output" |
| 85 | + OutputColumns = new[] { "Output" } |
86 | 86 | });
|
| 87 | + |
87 | 88 | </code>
|
88 | 89 | </example>
|
89 | 90 | </member>
|
|
0 commit comments