<p>Allows the inspection of the model's input and output nodes. Produced by an <ahref="OrtEnvironment.html"title="class in ai.onnxruntime"><code>OrtEnvironment</code></a>.
<p>Most instance methods throw <code>IllegalStateException</code> if the session is closed and the
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a></span></code></th>
<tdclass="colLast">
<divclass="block">An <code>AutoCloseable</code> wrapper around a <code>Map</code> containing <ahref="OnnxValue.html"title="interface in ai.onnxruntime"><code>OnnxValue</code></a>s.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="OrtSession.RunOptions.html"title="class in ai.onnxruntime">OrtSession.RunOptions</a></span></code></th>
<tdclass="colLast">
<divclass="block">Used to control logging and termination of a call to <ahref="#run(java.util.Map)"><code>run(java.util.Map<java.lang.String, ai.onnxruntime.OnnxTensor>)</code></a>.</div>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="OrtSession.SessionOptions.html"title="class in ai.onnxruntime">OrtSession.SessionOptions</a></span></code></th>
<divclass="block">Returns the timestamp that profiling started in nanoseconds.</div>
</td>
</tr>
<trid="i10"class="altColor">
<tdclass="colFirst"><code><ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#run(java.util.Map)">run</a></span>​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs)</code></th>
<tdclass="colFirst"><code><ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#run(java.util.Map,ai.onnxruntime.OrtSession.RunOptions)">run</a></span>​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<ahref="OrtSession.RunOptions.html"title="class in ai.onnxruntime">OrtSession.RunOptions</a> runOptions)</code></th>
<tdclass="colLast">
<divclass="block">Scores an input feed dict, returning the map of all inferred outputs.</div>
</td>
</tr>
<trid="i12"class="altColor">
<tdclass="colFirst"><code><ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#run(java.util.Map,java.util.Set)">run</a></span>​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<tdclass="colFirst"><code><ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a></code></td>
<thclass="colSecond"scope="row"><code><spanclass="memberNameLink"><ahref="#run(java.util.Map,java.util.Set,ai.onnxruntime.OrtSession.RunOptions)">run</a></span>​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<preclass="methodSignature">public java.util.Map<java.lang.String,​<ahref="NodeInfo.html"title="class in ai.onnxruntime">NodeInfo</a>> getInputInfo()
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<divclass="block">Returns the info objects for the inputs, including their names and types. The underlying
collection is sorted based on the input id number.</div>
<preclass="methodSignature">public java.util.Map<java.lang.String,​<ahref="NodeInfo.html"title="class in ai.onnxruntime">NodeInfo</a>> getOutputInfo()
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<divclass="block">Returns the info objects for the outputs, including their names and types. The underlying
collection is sorted based on the output id number.</div>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If there was an error in native code.</dd>
</dl>
</li>
</ul>
<aid="run(java.util.Map)">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>run</h4>
<preclass="methodSignature">public <ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a> run​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs)
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<divclass="block">Scores an input feed dict, returning the map of all inferred outputs.
<p>The outputs are sorted based on their id number.</div>
<dd><code>inputs</code> - The inputs to score.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The inferred outputs.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If there was an error in native code, the input names are invalid, or if
<preclass="methodSignature">public <ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a> run​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<ahref="OrtSession.RunOptions.html"title="class in ai.onnxruntime">OrtSession.RunOptions</a> runOptions)
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If there was an error in native code, the input names are invalid, or if
<preclass="methodSignature">public <ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a> run​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<dd><code>inputs</code> - The inputs to score.</dd>
<dd><code>requestedOutputs</code> - The requested outputs.</dd>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The inferred outputs.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If there was an error in native code, the input or output names are
invalid, or if there are zero or too many inputs or outputs.</dd>
<preclass="methodSignature">public <ahref="OrtSession.Result.html"title="class in ai.onnxruntime">OrtSession.Result</a> run​(java.util.Map<java.lang.String,​<ahref="OnnxTensor.html"title="class in ai.onnxruntime">OnnxTensor</a>> inputs,
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If there was an error in native code, the input or output names are
invalid, or if there are zero or too many inputs or outputs.</dd>
</dl>
</li>
</ul>
<aid="getMetadata()">
<!---->
</a>
<ulclass="blockList">
<liclass="blockList">
<h4>getMetadata</h4>
<preclass="methodSignature">public <ahref="OnnxModelMetadata.html"title="class in ai.onnxruntime">OnnxModelMetadata</a> getMetadata()
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<divclass="block">Gets the metadata for the currently loaded model.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The metadata.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If the native call failed.</dd>
throws <ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></pre>
<divclass="block">Ends the profiling session and returns the output of the profiler.
<p>Profiling should be enabled in the <ahref="OrtSession.SessionOptions.html"title="class in ai.onnxruntime"><code>OrtSession.SessionOptions</code></a> used to construct this <code>
Session</code>.</div>
<dl>
<dt><spanclass="returnLabel">Returns:</span></dt>
<dd>The profiling output.</dd>
<dt><spanclass="throwsLabel">Throws:</span></dt>
<dd><code><ahref="OrtException.html"title="class in ai.onnxruntime">OrtException</a></code> - If the native call failed.</dd>