Skip to content

Commit 6bd2baa

Browse files
committed
Doc update
1 parent 948275d commit 6bd2baa

File tree

7 files changed

+42
-12
lines changed

7 files changed

+42
-12
lines changed

docfx/api/TensorFlow/TensorFlow.TFGraph.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11715,6 +11715,7 @@ items:
1171511715
- TensorFlowSharp
1171611716
namespace: TensorFlow
1171711717
summary: Import a serialized graph held in a byte array into this graph, using the specified import options.
11718+
remarks: If you are tryig to load a file stored using the SavedModel file format, you should use the <xref href="TensorFlow.TFSession.FromSavedModel"></xref> API instead.
1171811719
syntax:
1171911720
content: public void Import (byte[] buffer, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFStatus status = null);
1172011721
parameters:
@@ -11829,6 +11830,7 @@ items:
1182911830
- TensorFlowSharp
1183011831
namespace: TensorFlow
1183111832
summary: Imports a graph serialized into the graph
11833+
remarks: If you are tryig to load a file stored using the SavedModel file format, you should use the <xref href="TensorFlow.TFSession.FromSavedModel"></xref> API instead.
1183211834
syntax:
1183311835
content: public void ImportGraphDef (TensorFlow.TFBuffer graphDef, TensorFlow.TFImportGraphDefOptions options, TensorFlow.TFOutput[] returnOutputs, TensorFlow.TFStatus status = null);
1183411836
parameters:

docfx/api/TensorFlow/TensorFlow.TFSession.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,16 @@ items:
163163
assemblies:
164164
- TensorFlowSharp
165165
namespace: TensorFlow
166-
summary: Creates a session and graph from a saved session model
166+
summary: Creates a session and graph from a model stored in the SavedModel file format.
167167
remarks: >-
168-
This function creates a new session using the specified <code>sessionOptions</code> and then initializes
169-
the state (restoring tensors and other assets) using <code>runOptions</code>
168+
<p>
169+
This function creates a new session using the specified <code>sessionOptions</code> and then initializes
170+
the state (restoring tensors and other assets) using <code>runOptions</code>.
171+
</p>
172+
<p>
173+
This function loads the data that was saved using the SavedModel file format, as described
174+
here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/README.md
175+
</p>
170176
syntax:
171177
content: public TensorFlow.TFSession FromSavedModel (TensorFlow.TFSessionOptions sessionOptions, TensorFlow.TFBuffer runOptions, string exportDir, string[] tags, TensorFlow.TFGraph graph, TensorFlow.TFBuffer metaGraphDef, TensorFlow.TFStatus status = null);
172178
parameters:

docs/api/TensorFlow/TensorFlow.TFGraph.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20596,6 +20596,9 @@ <h5 class="parameters">Parameters</h5>
2059620596
</tr>
2059720597
</tbody>
2059820598
</table>
20599+
<h5 id="TensorFlow_TFGraph_Import_System_Byte___TensorFlow_TFImportGraphDefOptions_TensorFlow_TFStatus__remarks">Remarks</h5>
20600+
<div class="markdown level1 remarks"><p>If you are tryig to load a file stored using the SavedModel file format, you should use the <span class="xref">TensorFlow.TFSession.FromSavedModel</span> API instead.</p>
20601+
</div>
2059920602

2060020603

2060120604
<a id="TensorFlow_TFGraph_Import_" data-uid="TensorFlow.TFGraph.Import*"></a>
@@ -20786,6 +20789,9 @@ <h5 class="parameters">Parameters</h5>
2078620789
</tr>
2078720790
</tbody>
2078820791
</table>
20792+
<h5 id="TensorFlow_TFGraph_ImportGraphDef_TensorFlow_TFBuffer_TensorFlow_TFImportGraphDefOptions_TensorFlow_TFOutput___TensorFlow_TFStatus__remarks">Remarks</h5>
20793+
<div class="markdown level1 remarks"><p>If you are tryig to load a file stored using the SavedModel file format, you should use the <span class="xref">TensorFlow.TFSession.FromSavedModel</span> API instead.</p>
20794+
</div>
2078920795

2079020796

2079120797
<a id="TensorFlow_TFGraph_InitializeTable_" data-uid="TensorFlow.TFGraph.InitializeTable*"></a>

docs/api/TensorFlow/TensorFlow.TFSession.html

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ <h5 class="parameters">Parameters</h5>
321321

322322
<a id="TensorFlow_TFSession_FromSavedModel_" data-uid="TensorFlow.TFSession.FromSavedModel*"></a>
323323
<h4 id="TensorFlow_TFSession_FromSavedModel_TensorFlow_TFSessionOptions_TensorFlow_TFBuffer_System_String_System_String___TensorFlow_TFGraph_TensorFlow_TFBuffer_TensorFlow_TFStatus_" data-uid="TensorFlow.TFSession.FromSavedModel(TensorFlow.TFSessionOptions,TensorFlow.TFBuffer,System.String,System.String[],TensorFlow.TFGraph,TensorFlow.TFBuffer,TensorFlow.TFStatus)">FromSavedModel(TFSessionOptions, TFBuffer, String, String[], TFGraph, TFBuffer, TFStatus)</h4>
324-
<div class="markdown level1 summary"><p>Creates a session and graph from a saved session model</p>
324+
<div class="markdown level1 summary"><p>Creates a session and graph from a model stored in the SavedModel file format.</p>
325325
</div>
326326
<div class="markdown level1 conceptual"></div>
327327
<h5 class="decalaration">Declaration</h5>
@@ -399,9 +399,14 @@ <h5 class="returns">Returns</h5>
399399
</tbody>
400400
</table>
401401
<h5 id="TensorFlow_TFSession_FromSavedModel_TensorFlow_TFSessionOptions_TensorFlow_TFBuffer_System_String_System_String___TensorFlow_TFGraph_TensorFlow_TFBuffer_TensorFlow_TFStatus__remarks">Remarks</h5>
402-
<div class="markdown level1 remarks"><p>This function creates a new session using the specified <code>sessionOptions</code> and then initializes
403-
the state (restoring tensors and other assets) using <code>runOptions</code></p>
404-
</div>
402+
<div class="markdown level1 remarks"><p>
403+
This function creates a new session using the specified <code>sessionOptions</code> and then initializes
404+
the state (restoring tensors and other assets) using <code>runOptions</code>.
405+
</p>
406+
<p>
407+
This function loads the data that was saved using the SavedModel file format, as described
408+
here: <a href="https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/README.md">https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/README.md</a>
409+
</p></div>
405410

406411

407412
<a id="TensorFlow_TFSession_GetRunner_" data-uid="TensorFlow.TFSession.GetRunner*"></a>

docs/manifest.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

ecmadocs/en/TensorFlow/TFGraph.xml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13498,7 +13498,9 @@
1349813498
Import a serialized graph held in a byte array into this graph, using the specified import options.
1349913499
</summary>
1350013500
<returns>The import.</returns>
13501-
<remarks>To be added.</remarks>
13501+
<remarks>
13502+
If you are tryig to load a file stored using the SavedModel file format, you should use the <see cref="T:TensorFlow.TFSession.FromSavedModel" /> API instead.
13503+
</remarks>
1350213504
</Docs>
1350313505
</Member>
1350413506
<Member MemberName="Import">
@@ -13614,7 +13616,9 @@
1361413616
<summary>
1361513617
Imports a graph serialized into the graph
1361613618
</summary>
13617-
<remarks>To be added.</remarks>
13619+
<remarks>
13620+
If you are tryig to load a file stored using the SavedModel file format, you should use the <see cref="T:TensorFlow.TFSession.FromSavedModel" /> API instead.
13621+
</remarks>
1361813622
</Docs>
1361913623
</Member>
1362013624
<Member MemberName="InitializeTable">

ecmadocs/en/TensorFlow/TFSession.xml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,19 @@
166166
<param name="metaGraphDef">On success, this will be populated on return with the contents of the MetaGraphDef (can be null).</param>
167167
<param name="status">Status buffer, if specified a status code will be left here, if not specified, a <see cref="T:TensorFlow.TFException" /> exception is raised if there is an error.</param>
168168
<summary>
169-
Creates a session and graph from a saved session model
169+
Creates a session and graph from a model stored in the SavedModel file format.
170170
</summary>
171171
<returns>On success, this populates the provided <paramref name="graph" /> with the contents of the graph stored in the specified model and <paramref name="metaGraphDef" /> with the MetaGraphDef of the loaded model.</returns>
172172
<remarks>
173+
<para>
173174
This function creates a new session using the specified <paramref name="sessionOptions" /> and then initializes
174-
the state (restoring tensors and other assets) using <paramref name="runOptions" /></remarks>
175+
the state (restoring tensors and other assets) using <paramref name="runOptions" />.
176+
</para>
177+
<para>
178+
This function loads the data that was saved using the SavedModel file format, as described
179+
here: https://github.com/tensorflow/tensorflow/blob/master/tensorflow/python/saved_model/README.md
180+
</para>
181+
</remarks>
175182
</Docs>
176183
</Member>
177184
<Member MemberName="GetRunner">

0 commit comments

Comments
 (0)