2022-08-12 19:55:22 +00:00
<!DOCTYPE HTML>
2019-12-15 20:58:06 +00:00
<!-- NewPage -->
< html lang = "en" >
< head >
2022-08-12 19:55:22 +00:00
<!-- Generated by javadoc -->
2022-11-09 21:30:29 +00:00
< title > OrtSession (onnxruntime 1.14.0 API)< / title >
2022-08-12 19:55:22 +00:00
< meta http-equiv = "Content-Type" content = "text/html; charset=utf-8" >
2019-12-15 20:58:06 +00:00
< link rel = "stylesheet" type = "text/css" href = "../../stylesheet.css" title = "Style" >
2023-01-20 00:21:07 +00:00
< link rel = "stylesheet" type = "text/css" href = "../../jquery/jquery-ui.min.css" title = "Style" >
< link rel = "stylesheet" type = "text/css" href = "../../jquery-ui.overrides.css" title = "Style" >
2019-12-15 20:58:06 +00:00
< script type = "text/javascript" src = "../../script.js" > < / script >
2022-08-12 19:55:22 +00:00
< script type = "text/javascript" src = "../../jquery/jszip/dist/jszip.min.js" > < / script >
< script type = "text/javascript" src = "../../jquery/jszip-utils/dist/jszip-utils.min.js" > < / script >
<!-- [if IE]>
< script type = "text/javascript" src = "../../jquery/jszip-utils/dist/jszip-utils-ie.min.js" > < / script >
<![endif]-->
2023-01-20 00:21:07 +00:00
< script type = "text/javascript" src = "../../jquery/jquery-3.6.0.min.js" > < / script >
< script type = "text/javascript" src = "../../jquery/jquery-ui.min.js" > < / script >
2019-12-15 20:58:06 +00:00
< / head >
< body >
< script type = "text/javascript" > < ! - -
try {
if (location.href.indexOf('is-external=true') == -1) {
2022-11-09 21:30:29 +00:00
parent.document.title="OrtSession (onnxruntime 1.14.0 API)";
2019-12-15 20:58:06 +00:00
}
}
catch(err) {
}
//-->
2022-08-12 19:55:22 +00:00
var data = {"i0":10,"i1":10,"i2":10,"i3":10,"i4":10,"i5":10,"i6":10,"i7":10,"i8":10,"i9":10,"i10":10,"i11":10,"i12":10,"i13":10,"i14":10};
2019-12-15 20:58:06 +00:00
var tabs = {65535:["t0","All Methods"],2:["t2","Instance Methods"],8:["t4","Concrete Methods"]};
var altColor = "altColor";
var rowColor = "rowColor";
var tableTab = "tableTab";
var activeTableTab = "activeTableTab";
2022-08-12 19:55:22 +00:00
var pathtoroot = "../../";
var useModuleDirectories = true;
loadScripts(document, 'script');< / script >
2019-12-15 20:58:06 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2022-08-12 19:55:22 +00:00
< header role = "banner" >
< nav role = "navigation" >
< div class = "fixedNav" >
2019-12-15 20:58:06 +00:00
<!-- ========= START OF TOP NAVBAR ======= -->
2022-08-12 19:55:22 +00:00
< div class = "topNav" > < a id = "navbar.top" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< div class = "skipNav" > < a href = "#skip.navbar.top" title = "Skip navigation links" > Skip navigation links< / a > < / div >
2022-08-12 19:55:22 +00:00
< a id = "navbar.top.firstrow" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
2022-08-12 19:55:22 +00:00
< li > < a href = "../../index.html" > Overview< / a > < / li >
< li > < a href = "package-summary.html" > Package< / a > < / li >
2019-12-15 20:58:06 +00:00
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../index-all.html" > Index< / a > < / li >
< li > < a href = "../../help-doc.html" > Help< / a > < / li >
< / ul >
< / div >
< div class = "subNav" >
< ul class = "navList" id = "allclasses_navbar_top" >
2022-08-12 19:55:22 +00:00
< li > < a href = "../../allclasses.html" > All Classes< / a > < / li >
< / ul >
< ul class = "navListSearch" >
< li > < label for = "search" > SEARCH:< / label >
< input type = "text" id = "search" value = "search" disabled = "disabled" >
< input type = "reset" id = "reset" value = "reset" disabled = "disabled" >
< / li >
2019-12-15 20:58:06 +00:00
< / ul >
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_top");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
< / script >
2022-08-12 19:55:22 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2019-12-15 20:58:06 +00:00
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > < a href = "#nested.class.summary" > Nested< / a > | < / li >
< li > Field | < / li >
< li > Constr | < / li >
< li > < a href = "#method.summary" > Method< / a > < / li >
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
< li > Field | < / li >
< li > Constr | < / li >
< li > < a href = "#method.detail" > Method< / a > < / li >
< / ul >
< / div >
2022-08-12 19:55:22 +00:00
< a id = "skip.navbar.top" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a > < / div >
<!-- ========= END OF TOP NAVBAR ========= -->
2022-08-12 19:55:22 +00:00
< / div >
< div class = "navPadding" > < / div >
< script type = "text/javascript" > < ! - -
$('.navPadding').css('padding-top', $('.fixedNav').css("height"));
//-->
< / script >
< / nav >
< / header >
2019-12-15 20:58:06 +00:00
<!-- ======== START OF CLASS DATA ======== -->
2022-08-12 19:55:22 +00:00
< main role = "main" >
2019-12-15 20:58:06 +00:00
< div class = "header" >
2022-08-12 19:55:22 +00:00
< div class = "subTitle" > < span class = "packageLabelInType" > Package< / span > < a href = "package-summary.html" > ai.onnxruntime< / a > < / div >
2019-12-15 20:58:06 +00:00
< h2 title = "Class OrtSession" class = "title" > Class OrtSession< / h2 >
< / div >
< div class = "contentContainer" >
< ul class = "inheritance" >
< li > java.lang.Object< / li >
< li >
< ul class = "inheritance" >
< li > ai.onnxruntime.OrtSession< / li >
< / ul >
< / li >
< / ul >
< div class = "description" >
< ul class = "blockList" >
< li class = "blockList" >
< dl >
< dt > All Implemented Interfaces:< / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > java.lang.AutoCloseable< / code > < / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< hr >
< pre > public class < span class = "typeNameLabel" > OrtSession< / span >
extends java.lang.Object
implements java.lang.AutoCloseable< / pre >
< div class = "block" > Wraps an ONNX model and allows inference calls.
2022-08-12 19:55:22 +00:00
< p > Allows the inspection of the model's input and output nodes. Produced by an < a href = "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
methods are called.< / div >
2019-12-15 20:58:06 +00:00
< / li >
< / ul >
< / div >
< div class = "summary" >
< ul class = "blockList" >
< li class = "blockList" >
<!-- ======== NESTED CLASS SUMMARY ======== -->
2023-01-20 00:21:07 +00:00
< section >
2019-12-15 20:58:06 +00:00
< ul class = "blockList" >
2022-08-12 19:55:22 +00:00
< li class = "blockList" > < a id = "nested.class.summary" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< h3 > Nested Class Summary< / h3 >
2022-08-12 19:55:22 +00:00
< table class = "memberSummary" >
2019-12-15 20:58:06 +00:00
< caption > < span > Nested Classes< / span > < span class = "tabEnd" > < / span > < / caption >
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "col" > Class< / th >
< th class = "colLast" scope = "col" > Description< / th >
2019-12-15 20:58:06 +00:00
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static class < / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > < / span > < / code > < / th >
< td class = "colLast" >
< div class = "block" > An < code > AutoCloseable< / code > wrapper around a < code > Map< / code > containing < a href = "OnnxValue.html" title = "interface in ai.onnxruntime" > < code > OnnxValue< / code > < / a > s.< / div >
2019-12-15 20:58:06 +00:00
< / td >
< / tr >
< tr class = "rowColor" >
< td class = "colFirst" > < code > static class < / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "OrtSession.RunOptions.html" title = "class in ai.onnxruntime" > OrtSession.RunOptions< / a > < / span > < / code > < / th >
< td class = "colLast" >
2023-01-20 00:21:07 +00:00
< div class = "block" > Used to control logging and termination of a call to < a href = "#run(java.util.Map)" > < code > run(java.util.Map< java.lang.String, ? extends ai.onnxruntime.OnnxTensorLike> )< / code > < / a > .< / div >
2022-08-12 19:55:22 +00:00
< / td >
< / tr >
< tr class = "altColor" >
< td class = "colFirst" > < code > static class < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "OrtSession.SessionOptions.html" title = "class in ai.onnxruntime" > OrtSession.SessionOptions< / a > < / span > < / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Represents the options used to construct this session.< / div >
< / td >
< / tr >
< / table >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< / section >
2019-12-15 20:58:06 +00:00
<!-- ========== METHOD SUMMARY =========== -->
2023-01-20 00:21:07 +00:00
< section >
2019-12-15 20:58:06 +00:00
< ul class = "blockList" >
2022-08-12 19:55:22 +00:00
< li class = "blockList" > < a id = "method.summary" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< h3 > Method Summary< / h3 >
2022-08-12 19:55:22 +00:00
< table class = "memberSummary" >
2019-12-15 20:58:06 +00:00
< caption > < span id = "t0" class = "activeTableTab" > < span > All Methods< / span > < span class = "tabEnd" > < / span > < / span > < span id = "t2" class = "tableTab" > < span > < a href = "javascript:show(2);" > Instance Methods< / a > < / span > < span class = "tabEnd" > < / span > < / span > < span id = "t4" class = "tableTab" > < span > < a href = "javascript:show(8);" > Concrete Methods< / a > < / span > < span class = "tabEnd" > < / span > < / span > < / caption >
< tr >
< th class = "colFirst" scope = "col" > Modifier and Type< / th >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "col" > Method< / th >
< th class = "colLast" scope = "col" > Description< / th >
2019-12-15 20:58:06 +00:00
< / tr >
< tr id = "i0" class = "altColor" >
< td class = "colFirst" > < code > void< / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#close()" > close< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Closes the session, releasing it's resources.< / div >
< / td >
< / tr >
< tr id = "i1" class = "rowColor" >
2022-08-12 19:55:22 +00:00
< td class = "colFirst" > < code > java.lang.String< / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#endProfiling()" > endProfiling< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
< div class = "block" > Ends the profiling session and returns the output of the profiler.< / div >
2019-12-15 20:58:06 +00:00
< / td >
< / tr >
< tr id = "i2" class = "altColor" >
2022-08-12 19:55:22 +00:00
< td class = "colFirst" > < code > java.util.Map< java.lang.String,​ < a href = "NodeInfo.html" title = "class in ai.onnxruntime" > NodeInfo< / a > > < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getInputInfo()" > getInputInfo< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
< div class = "block" > Returns the info objects for the inputs, including their names and types.< / div >
< / td >
< / tr >
< tr id = "i3" class = "rowColor" >
2019-12-15 20:58:06 +00:00
< td class = "colFirst" > < code > java.util.Set< java.lang.String> < / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getInputNames()" > getInputNames< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the input names.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i4" class = "altColor" >
< td class = "colFirst" > < code > < a href = "OnnxModelMetadata.html" title = "class in ai.onnxruntime" > OnnxModelMetadata< / a > < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getMetadata()" > getMetadata< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
< div class = "block" > Gets the metadata for the currently loaded model.< / div >
< / td >
< / tr >
< tr id = "i5" class = "rowColor" >
2019-12-15 20:58:06 +00:00
< td class = "colFirst" > < code > long< / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getNumInputs()" > getNumInputs< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the number of inputs this model expects.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i6" class = "altColor" >
2019-12-15 20:58:06 +00:00
< td class = "colFirst" > < code > long< / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getNumOutputs()" > getNumOutputs< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the number of outputs this model expects.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i7" class = "rowColor" >
< td class = "colFirst" > < code > java.util.Map< java.lang.String,​ < a href = "NodeInfo.html" title = "class in ai.onnxruntime" > NodeInfo< / a > > < / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getOutputInfo()" > getOutputInfo< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the info objects for the outputs, including their names and types.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i8" class = "altColor" >
2019-12-15 20:58:06 +00:00
< td class = "colFirst" > < code > java.util.Set< java.lang.String> < / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getOutputNames()" > getOutputNames< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the output names.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i9" class = "rowColor" >
< td class = "colFirst" > < code > long< / code > < / td >
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#getProfilingStartTimeInNs()" > getProfilingStartTimeInNs< / a > < / span > ()< / code > < / th >
< td class = "colLast" >
< div class = "block" > Returns the timestamp that profiling started in nanoseconds.< / div >
< / td >
< / tr >
< tr id = "i10" class = "altColor" >
< td class = "colFirst" > < code > < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > < / code > < / td >
2023-01-20 00:21:07 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#run(java.util.Map)" > run< / a > < / span > ​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs)< / code > < / th >
2022-08-12 19:55:22 +00:00
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Scores an input feed dict, returning the map of all inferred outputs.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i11" class = "rowColor" >
< td class = "colFirst" > < code > < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > < / code > < / td >
2023-01-20 00:21:07 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#run(java.util.Map,ai.onnxruntime.OrtSession.RunOptions)" > run< / a > < / span > ​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2022-08-12 19:55:22 +00:00
< a href = "OrtSession.RunOptions.html" title = "class in ai.onnxruntime" > OrtSession.RunOptions< / a > runOptions)< / code > < / th >
< td class = "colLast" >
< div class = "block" > Scores an input feed dict, returning the map of all inferred outputs.< / div >
< / td >
< / tr >
< tr id = "i12" class = "altColor" >
< td class = "colFirst" > < code > < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > < / code > < / td >
2023-01-20 00:21:07 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#run(java.util.Map,java.util.Set)" > run< / a > < / span > ​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2022-08-12 19:55:22 +00:00
java.util.Set< java.lang.String> requestedOutputs)< / code > < / th >
< td class = "colLast" >
2019-12-15 20:58:06 +00:00
< div class = "block" > Scores an input feed dict, returning the map of requested inferred outputs.< / div >
< / td >
< / tr >
2022-08-12 19:55:22 +00:00
< tr id = "i13" class = "rowColor" >
< td class = "colFirst" > < code > < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > < / code > < / td >
2023-01-20 00:21:07 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#run(java.util.Map,java.util.Set,ai.onnxruntime.OrtSession.RunOptions)" > run< / a > < / span > ​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2022-08-12 19:55:22 +00:00
java.util.Set< java.lang.String> requestedOutputs,
< a href = "OrtSession.RunOptions.html" title = "class in ai.onnxruntime" > OrtSession.RunOptions< / a > runOptions)< / code > < / th >
< td class = "colLast" >
< div class = "block" > Scores an input feed dict, returning the map of requested inferred outputs.< / div >
< / td >
< / tr >
< tr id = "i14" class = "altColor" >
2019-12-15 20:58:06 +00:00
< td class = "colFirst" > < code > java.lang.String< / code > < / td >
2022-08-12 19:55:22 +00:00
< th class = "colSecond" scope = "row" > < code > < span class = "memberNameLink" > < a href = "#toString()" > toString< / a > < / span > ()< / code > < / th >
< td class = "colLast" > < / td >
2019-12-15 20:58:06 +00:00
< / tr >
< / table >
< ul class = "blockList" >
2022-08-12 19:55:22 +00:00
< li class = "blockList" > < a id = "methods.inherited.from.class.java.lang.Object" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< h3 > Methods inherited from class java.lang.Object< / h3 >
< code > clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait< / code > < / li >
< / ul >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< / section >
2019-12-15 20:58:06 +00:00
< / li >
< / ul >
< / div >
< div class = "details" >
< ul class = "blockList" >
< li class = "blockList" >
<!-- ============ METHOD DETAIL ========== -->
2023-01-20 00:21:07 +00:00
< section >
2019-12-15 20:58:06 +00:00
< ul class = "blockList" >
2022-08-12 19:55:22 +00:00
< li class = "blockList" > < a id = "method.detail" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< h3 > Method Detail< / h3 >
2022-08-12 19:55:22 +00:00
< a id = "getNumInputs()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getNumInputs< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public long getNumInputs()< / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the number of inputs this model expects.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The number of inputs.< / dd >
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "getNumOutputs()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getNumOutputs< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public long getNumOutputs()< / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the number of outputs this model expects.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The number of outputs.< / dd >
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "getInputNames()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getInputNames< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public java.util.Set< java.lang.String> getInputNames()< / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the input names. The underlying collection is sorted based on the input id number.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The input names.< / dd >
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "getOutputNames()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getOutputNames< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public java.util.Set< java.lang.String> getOutputNames()< / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Returns the output names. The underlying collection is sorted based on the output id number.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The output names.< / dd >
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "getInputInfo()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getInputInfo< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public java.util.Map< java.lang.String,​ < a href = "NodeInfo.html" title = "class in ai.onnxruntime" > NodeInfo< / a > > getInputInfo()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "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 >
2019-12-15 20:58:06 +00:00
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The input information.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If there was an error in native code.< / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "getOutputInfo()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getOutputInfo< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public java.util.Map< java.lang.String,​ < a href = "NodeInfo.html" title = "class in ai.onnxruntime" > NodeInfo< / a > > getOutputInfo()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "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 >
2019-12-15 20:58:06 +00:00
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The output information.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If there was an error in native code.< / dd >
< / dl >
< / li >
< / ul >
< a id = "run(java.util.Map)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > run< / h4 >
2023-01-20 00:21:07 +00:00
< pre class = "methodSignature" > public < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > run​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs)
2022-08-12 19:55:22 +00:00
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "block" > Scores an input feed dict, returning the map of all inferred outputs.
< p > The outputs are sorted based on their id number.< / div >
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > inputs< / code > - The inputs to score.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The inferred outputs.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
< dd > < code > < a href = "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
there are zero or too many inputs.< / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "run(java.util.Map,ai.onnxruntime.OrtSession.RunOptions)" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > run< / h4 >
2023-01-20 00:21:07 +00:00
< pre class = "methodSignature" > public < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > run​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2022-08-12 19:55:22 +00:00
< a href = "OrtSession.RunOptions.html" title = "class in ai.onnxruntime" > OrtSession.RunOptions< / a > runOptions)
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Scores an input feed dict, returning the map of all inferred outputs.
2022-08-12 19:55:22 +00:00
< p > The outputs are sorted based on their id number.< / div >
2019-12-15 20:58:06 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > inputs< / code > - The inputs to score.< / dd >
2022-08-12 19:55:22 +00:00
< dd > < code > runOptions< / code > - The RunOptions to control this run.< / dd >
2019-12-15 20:58:06 +00:00
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The inferred outputs.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > < a href = "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
there are zero or too many inputs.< / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "run(java.util.Map,java.util.Set)" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > run< / h4 >
2023-01-20 00:21:07 +00:00
< pre class = "methodSignature" > public < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > run​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2019-12-15 20:58:06 +00:00
java.util.Set< java.lang.String> requestedOutputs)
2022-08-12 19:55:22 +00:00
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "block" > Scores an input feed dict, returning the map of requested inferred outputs.
< p > The outputs are sorted based on the supplied set traversal order.< / div >
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > inputs< / code > - The inputs to score.< / dd >
< dd > < code > requestedOutputs< / code > - The requested outputs.< / dd >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The inferred outputs.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
< dd > < code > < a href = "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 >
< a id = "run(java.util.Map,java.util.Set,ai.onnxruntime.OrtSession.RunOptions)" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > run< / h4 >
2023-01-20 00:21:07 +00:00
< pre class = "methodSignature" > public < a href = "OrtSession.Result.html" title = "class in ai.onnxruntime" > OrtSession.Result< / a > run​ (java.util.Map< java.lang.String,​ ? extends < a href = "OnnxTensorLike.html" title = "class in ai.onnxruntime" > OnnxTensorLike< / a > > inputs,
2022-08-12 19:55:22 +00:00
java.util.Set< java.lang.String> requestedOutputs,
< a href = "OrtSession.RunOptions.html" title = "class in ai.onnxruntime" > OrtSession.RunOptions< / a > runOptions)
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Scores an input feed dict, returning the map of requested inferred outputs.
2022-08-12 19:55:22 +00:00
2023-01-20 00:21:07 +00:00
< p > The outputs are sorted based on the supplied set traversal order.< / div >
2019-12-15 20:58:06 +00:00
< dl >
< dt > < span class = "paramLabel" > Parameters:< / span > < / dt >
< dd > < code > inputs< / code > - The inputs to score.< / dd >
< dd > < code > requestedOutputs< / code > - The requested outputs.< / dd >
2022-08-12 19:55:22 +00:00
< dd > < code > runOptions< / code > - The RunOptions to control this run.< / dd >
2019-12-15 20:58:06 +00:00
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The inferred outputs.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > < a href = "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 >
< a id = "getMetadata()" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getMetadata< / h4 >
< pre class = "methodSignature" > public < a href = "OnnxModelMetadata.html" title = "class in ai.onnxruntime" > OnnxModelMetadata< / a > getMetadata()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "block" > Gets the metadata for the currently loaded model.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The metadata.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If the native call failed.< / dd >
< / dl >
< / li >
< / ul >
< a id = "getProfilingStartTimeInNs()" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > getProfilingStartTimeInNs< / h4 >
< pre class = "methodSignature" > public long getProfilingStartTimeInNs()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "block" > Returns the timestamp that profiling started in nanoseconds.< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > the profiling start time in ns.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If the native call failed.< / dd >
< / dl >
< / li >
< / ul >
< a id = "endProfiling()" >
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > endProfiling< / h4 >
< pre class = "methodSignature" > public java.lang.String endProfiling()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
< div class = "block" > Ends the profiling session and returns the output of the profiler.
< p > Profiling should be enabled in the < a href = "OrtSession.SessionOptions.html" title = "class in ai.onnxruntime" > < code > OrtSession.SessionOptions< / code > < / a > used to construct this < code >
Session< / code > .< / div >
< dl >
< dt > < span class = "returnLabel" > Returns:< / span > < / dt >
< dd > The profiling output.< / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If the native call failed.< / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "toString()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockList" >
< li class = "blockList" >
< h4 > toString< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public java.lang.String toString()< / pre >
2019-12-15 20:58:06 +00:00
< dl >
< dt > < span class = "overrideSpecifyLabel" > Overrides:< / span > < / dt >
< dd > < code > toString< / code > in class < code > java.lang.Object< / code > < / dd >
< / dl >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< a id = "close()" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "blockListLast" >
< li class = "blockList" >
< h4 > close< / h4 >
2022-08-12 19:55:22 +00:00
< pre class = "methodSignature" > public void close()
throws < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / pre >
2019-12-15 20:58:06 +00:00
< div class = "block" > Closes the session, releasing it's resources.< / div >
< dl >
< dt > < span class = "overrideSpecifyLabel" > Specified by:< / span > < / dt >
< dd > < code > close< / code > in interface < code > java.lang.AutoCloseable< / code > < / dd >
< dt > < span class = "throwsLabel" > Throws:< / span > < / dt >
2022-08-12 19:55:22 +00:00
< dd > < code > < a href = "OrtException.html" title = "class in ai.onnxruntime" > OrtException< / a > < / code > - If it failed to close.< / dd >
2019-12-15 20:58:06 +00:00
< / dl >
< / li >
< / ul >
< / li >
< / ul >
2022-08-12 19:55:22 +00:00
< / section >
2019-12-15 20:58:06 +00:00
< / li >
< / ul >
< / div >
< / div >
2022-08-12 19:55:22 +00:00
< / main >
2019-12-15 20:58:06 +00:00
<!-- ========= END OF CLASS DATA ========= -->
2022-08-12 19:55:22 +00:00
< footer role = "contentinfo" >
< nav role = "navigation" >
2019-12-15 20:58:06 +00:00
<!-- ======= START OF BOTTOM NAVBAR ====== -->
2022-08-12 19:55:22 +00:00
< div class = "bottomNav" > < a id = "navbar.bottom" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< div class = "skipNav" > < a href = "#skip.navbar.bottom" title = "Skip navigation links" > Skip navigation links< / a > < / div >
2022-08-12 19:55:22 +00:00
< a id = "navbar.bottom.firstrow" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a >
< ul class = "navList" title = "Navigation" >
2022-08-12 19:55:22 +00:00
< li > < a href = "../../index.html" > Overview< / a > < / li >
< li > < a href = "package-summary.html" > Package< / a > < / li >
2019-12-15 20:58:06 +00:00
< li class = "navBarCell1Rev" > Class< / li >
< li > < a href = "package-tree.html" > Tree< / a > < / li >
< li > < a href = "../../deprecated-list.html" > Deprecated< / a > < / li >
< li > < a href = "../../index-all.html" > Index< / a > < / li >
< li > < a href = "../../help-doc.html" > Help< / a > < / li >
< / ul >
< / div >
< div class = "subNav" >
< ul class = "navList" id = "allclasses_navbar_bottom" >
2022-08-12 19:55:22 +00:00
< li > < a href = "../../allclasses.html" > All Classes< / a > < / li >
2019-12-15 20:58:06 +00:00
< / ul >
< div >
< script type = "text/javascript" > < ! - -
allClassesLink = document.getElementById("allclasses_navbar_bottom");
if(window==top) {
allClassesLink.style.display = "block";
}
else {
allClassesLink.style.display = "none";
}
//-->
< / script >
2022-08-12 19:55:22 +00:00
< noscript >
< div > JavaScript is disabled on your browser.< / div >
< / noscript >
2019-12-15 20:58:06 +00:00
< / div >
< div >
< ul class = "subNavList" >
< li > Summary: < / li >
< li > < a href = "#nested.class.summary" > Nested< / a > | < / li >
< li > Field | < / li >
< li > Constr | < / li >
< li > < a href = "#method.summary" > Method< / a > < / li >
< / ul >
< ul class = "subNavList" >
< li > Detail: < / li >
< li > Field | < / li >
< li > Constr | < / li >
< li > < a href = "#method.detail" > Method< / a > < / li >
< / ul >
< / div >
2022-08-12 19:55:22 +00:00
< a id = "skip.navbar.bottom" >
2019-12-15 20:58:06 +00:00
<!-- -->
< / a > < / div >
<!-- ======== END OF BOTTOM NAVBAR ======= -->
2022-08-12 19:55:22 +00:00
< / nav >
< / footer >
2019-12-15 20:58:06 +00:00
< / body >
< / html >