All modules for which code is available
-- onnxruntime.capi.onnxruntime_inference_collection +
- onnxruntime.backend.backend +
- onnxruntime.capi.onnxruntime_inference_collection
- onnxruntime.capi.onnxruntime_pybind11_state
diff --git a/docs/api/python/.buildinfo b/docs/api/python/.buildinfo index 0758e79596..e817dec9a8 100644 --- a/docs/api/python/.buildinfo +++ b/docs/api/python/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 978b25a22c73c6c97974b1c827a546bd +config: fa4364778ec99187343222d4f759e041 tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/api/python/api_summary.html b/docs/api/python/api_summary.html index 02e0de0b1b..565c256578 100644 --- a/docs/api/python/api_summary.html +++ b/docs/api/python/api_summary.html @@ -4,7 +4,7 @@
- + @@ -24,9 +24,6 @@ - - - @@ -51,7 +48,7 @@ONNX Runtime loads and runs inference on a model in ONNX graph format, or ORT format (for memory and disk constrained environments).
The data consumed and produced by the model can be specified and accessed in the way that best matches your scenario.
InferenceSession is the main class of ONNX Runtime. It is used to load and run an ONNX model, as well as specify environment and application configuration options.
session = onnxruntime.InferenceSession('model.onnx')
@@ -135,10 +132,10 @@ profiling on the session:
The ONNX Runtime Inference Session consumes and produces data using its OrtValue class.
On CPU (the default), OrtValues can be mapped to and from native Python data structures: numpy arrays, dictionaries and lists of numpy arrays.
# X is numpy array on cpu
@@ -159,7 +156,7 @@ may not optimal if the input or output is consumed and produced on a device
other than CPU because it introduces data copy between CPU and the device.
-Data on device¶
+Data on device¶
ONNX Runtime supports a custom data structure that supports all ONNX data formats that allows users
to place the data backing these on a device, for example, on a CUDA supported device. In ONNX Runtime,
this called IOBinding.
@@ -261,15 +258,15 @@ Users can thus consume the ONNX Runtime allocated memory for the output
-API Details¶
+API Details¶
-InferenceSession¶
+InferenceSession¶
-
class onnxruntime.InferenceSession(path_or_bytes, sess_options=None, providers=None, provider_options=None, **kwargs)[source]¶
This is the main class used to run a model.
-- Parameters
+- Parameters:
path_or_bytes – filename or serialized ONNX or ORT format model in a byte string
sess_options – session options
@@ -382,14 +379,14 @@ For instance, on Windows and MacOS, the precision will be ~100ns
run(output_names, input_feed, run_options=None)¶
Compute the predictions.
-- Parameters
+- Parameters:
output_names – name of the outputs
input_feed – dictionary { input_name: input_value }
run_options – See onnxruntime.RunOptions.
-- Returns
+- Returns:
list of results, every result is either a numpy array,
a sparse tensor, a list or a dictionary.
@@ -404,7 +401,7 @@ a sparse tensor, a list or a dictionary.
run_with_iobinding(iobinding, run_options=None)¶
Compute the predictions.
-- Parameters
+- Parameters:
iobinding – the iobinding object that has graph inputs/outputs bind.
run_options – See onnxruntime.RunOptions.
@@ -418,7 +415,7 @@ a sparse tensor, a list or a dictionary.
run_with_ort_values(output_names, input_dict_ort_values, run_options=None)¶
Compute the predictions.
-- Parameters
+- Parameters:
output_names – name of the outputs
input_dict_ort_values – dictionary { input_name: input_ort_value }
@@ -427,7 +424,7 @@ from numpy array or SparseTensor
run_options – See onnxruntime.RunOptions.
-- Returns
+- Returns:
an array of OrtValue
@@ -441,7 +438,7 @@ from numpy array or SparseTensor
run_with_ortvaluevector(run_options, feed_names, feeds, fetch_names, fetches, fetch_devices)¶
Compute the predictions similar to other run_*() methods but with minimal C++/Python conversion overhead.
-- Parameters
+- Parameters:
run_options – See onnxruntime.RunOptions.
feed_names – list of input names.
@@ -459,7 +456,7 @@ from numpy array or SparseTensor
set_providers(providers=None, provider_options=None)¶
Register the input list of execution providers. The underlying session is re-created.
-- Parameters
+- Parameters:
providers – Optional sequence of providers in order of decreasing
precedence. Values can either be provider names or tuples of
@@ -482,9 +479,9 @@ otherwise execute using CPUExecutionProvider.
-Options¶
+Options¶
-RunOptions¶
+RunOptions¶
-
class onnxruntime.RunOptions(self: onnxruntime.capi.onnxruntime_pybind11_state.RunOptions)¶
@@ -543,7 +540,7 @@ RunOptions instance. The individual calls will exit gracefully and return an err
-SessionOptions¶
+SessionOptions¶
-
class onnxruntime.SessionOptions(self: onnxruntime.capi.onnxruntime_pybind11_state.SessionOptions)¶
@@ -690,9 +687,9 @@ Serialized model format will default to ONNX unless:
-Data¶
+Data¶
-OrtValue¶
+OrtValue¶
-
class onnxruntime.OrtValue(ortvalue, numpy_obj=None)[source]¶
@@ -776,7 +773,7 @@ The new instance of OrtValue will assume the ownership of sparse_tensor
Factory method to construct an OrtValue (which holds a Tensor) from a given Numpy object
A copy of the data in the Numpy object is held by the OrtValue only if the device is NOT cpu
-- Parameters
+- Parameters:
numpy_obj – The Numpy object to construct the OrtValue from
device_type – e.g. cpu, cuda, cpu by default
@@ -791,7 +788,7 @@ A copy of the data in the Numpy object is held by the OrtValue only if the devic
static ortvalue_from_shape_and_type(shape=None, element_type=None, device_type='cpu', device_id=0)[source]¶
Factory method to construct an OrtValue (which holds a Tensor) from given shape and element_type
-- Parameters
+- Parameters:
shape – List of integers indicating the shape of the OrtValue
element_type – The data type of the elements in the OrtValue (numpy type)
@@ -822,7 +819,7 @@ the memory address can not be changed.
-SparseTensor¶
+SparseTensor¶
-
class onnxruntime.SparseTensor(sparse_tensor)[source]¶
@@ -897,7 +894,7 @@ You can query indices as:
static sparse_coo_from_numpy(dense_shape, values, coo_indices, ort_device)[source]¶
Factory method to construct a SparseTensor in COO format from given arguments
-- Parameters
+- Parameters:
dense_shape – 1-D numpy array(int64) or a python list that contains a dense_shape of the sparse tensor
must be on cpu memory
@@ -927,7 +924,7 @@ on other devices and their memory can not be mapped.
static sparse_csr_from_numpy(dense_shape, values, inner_indices, outer_indices, ort_device)[source]¶
Factory method to construct a SparseTensor in CSR format from given arguments
-- Parameters
+- Parameters:
dense_shape – 1-D numpy array(int64) or a python list that contains a dense_shape of the
sparse tensor (rows, cols) must be on cpu memory
@@ -957,7 +954,7 @@ on other devices and their memory can not be mapped.
to_cuda(ort_device)[source]¶
Returns a copy of this instance on the specified cuda device
-- Parameters
+- Parameters:
ort_device – with name ‘cuda’ and valid gpu device id
@@ -983,9 +980,9 @@ copies of the strings.
-Devices¶
+Devices¶
-IOBinding¶
+IOBinding¶
-
class onnxruntime.IOBinding(session)[source]¶
@@ -1002,7 +999,7 @@ copies of the strings.
-
bind_input(name, device_type, device_id, element_type, shape, buffer_ptr)[source]¶
-- Parameters
+- Parameters:
name – input name
device_type – e.g. cpu, cuda
@@ -1019,7 +1016,7 @@ copies of the strings.
-
bind_ortvalue_input(name, ortvalue)[source]¶
-- Parameters
+- Parameters:
name – input name
ortvalue – OrtValue instance to bind
@@ -1032,7 +1029,7 @@ copies of the strings.
-
bind_ortvalue_output(name, ortvalue)[source]¶
-- Parameters
+- Parameters:
name – output name
ortvalue – OrtValue instance to bind
@@ -1045,7 +1042,7 @@ copies of the strings.
-
bind_output(name, device_type='cpu', device_id=0, element_type=None, shape=None, buffer_ptr=None)[source]¶
-- Parameters
+- Parameters:
name – output name
device_type – e.g. cpu, cuda, cpu by default
@@ -1075,7 +1072,7 @@ The data buffer of the obtained OrtValues may not reside on CPU memory
-OrtDevice¶
+OrtDevice¶
-Internal classes¶
+Internal classes¶
These classes cannot be instantiated by users but they are returned
by methods or functions of this library.
-ModelMetadata¶
+ModelMetadata¶
-
class onnxruntime.ModelMetadata¶
@@ -1143,7 +1140,7 @@ facilitate the comparison.
-NodeArg¶
+NodeArg¶
-
class onnxruntime.NodeArg¶
@@ -1173,7 +1170,7 @@ including arg name, arg type (contains both type and shape).
-Backend¶
+Backend¶
In addition to the regular API which is optimized for performance and usability,
ONNX Runtime also implements the
ONNX backend API
@@ -1184,13 +1181,13 @@ The following functions are supported:
onnxruntime.backend.is_compatible(model, device=None, **kwargs)¶
Return whether the model is compatible with the backend.
-- Parameters
+- Parameters:
model – unused
device – None to use the default device or a string (ex: ‘CPU’)
-- Returns
+- Returns:
boolean
@@ -1202,7 +1199,7 @@ The following functions are supported:
Load the model and creates a onnxruntime.InferenceSession
ready to be used as a backend.
-- Parameters
+- Parameters:
model – ModelProto (returned by onnx.load),
string for a filename or bytes for a serialized model
@@ -1212,7 +1209,7 @@ the compilation settings
kwargs – see onnxruntime.SessionOptions
-- Returns
+- Returns:
-
@@ -1223,7 +1220,7 @@ the compilation settings
onnxruntime.backend.run(model, inputs, device=None, **kwargs)¶
Compute the prediction.
-- Parameters
+- Parameters:
model – onnxruntime.InferenceSession returned
by function prepare
@@ -1234,7 +1231,7 @@ the compilation settings
kwargs – see onnxruntime.RunOptions
-- Returns
+- Returns:
predictions
@@ -1311,8 +1308,8 @@ In particular it’s used in the testing suite.
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -151,8 +148,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -112,7 +109,7 @@ without using onnx.
The backend API is implemented by other frameworks
and makes it easier to switch between multiple runtimes
with the same API.
-Total running time of the script: ( 0 minutes 0.021 seconds)
+Total running time of the script: ( 0 minutes 0.019 seconds)
Download Python source code: plot_backend.py
@@ -187,8 +184,8 @@ with the same API.
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -209,7 +206,7 @@ ERROR with Shape=(1, 1, 3) - [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid
ERROR with Shape=(2, 1, 2) - [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid rank for input: float_input Got: 3 Expected: 2 Please fix either the inputs or the model.
-Total running time of the script: ( 0 minutes 0.014 seconds)
+Total running time of the script: ( 0 minutes 0.011 seconds)
Download Python source code: plot_common_errors.py
@@ -284,8 +281,8 @@ ERROR with Shape=(2, 1, 2) - [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Invalid
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -61,14 +58,14 @@ starting with the training of a scikit-learn pipeline
which takes as inputs not a regular vector but a
dictionary { int: float } as its first step is a
DictVectorizer.
-
+
+
-Train a pipeline¶
+Train a pipeline¶
The first step consists in retrieving the boston datset.
import pandas
from sklearn.datasets import load_boston
@@ -143,12 +140,12 @@ and we show the confusion matrix.
print(r2_score(y_test, pred))
-0.8474132062469484
+0.92310182911155
-Conversion to ONNX format¶
+Conversion to ONNX format¶
We use module
sklearn-onnx
to convert the model into ONNX format.
@@ -200,12 +197,12 @@ ONNX Runtime expects one observation at a time.
print(r2_score(pred, pred_onx))
-0.9999999999999123
+0.9999999999999366
Very similar. ONNX Runtime uses floats instead of doubles,
that explains the small discrepencies.
-Total running time of the script: ( 0 minutes 1.374 seconds)
+Total running time of the script: ( 0 minutes 1.392 seconds)
Download Python source code: plot_convert_pipeline_vectorizer.py
@@ -281,8 +278,8 @@ that explains the small discrepencies.
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -108,24 +105,24 @@ output type tensor(float)
print(res)
-[array([[[0.72821426, 0.6339202 , 0.7272735 , 0.6409311 , 0.61518466],
- [0.7185246 , 0.640914 , 0.60131776, 0.6857518 , 0.70039463],
- [0.7135308 , 0.65056884, 0.58760184, 0.7135416 , 0.63284004],
- [0.7188247 , 0.5470599 , 0.58532 , 0.67812634, 0.6893187 ]],
+[array([[[0.6741172 , 0.7219819 , 0.61369073, 0.7058611 , 0.6851099 ],
+ [0.65471834, 0.59070265, 0.6932085 , 0.58628637, 0.68116176],
+ [0.6053132 , 0.6046966 , 0.5977106 , 0.5027518 , 0.6936471 ],
+ [0.584405 , 0.5433203 , 0.71175635, 0.5528623 , 0.66580206]],
- [[0.6211655 , 0.554035 , 0.55418974, 0.56652635, 0.62399405],
- [0.55780345, 0.6938668 , 0.5910147 , 0.59314 , 0.54391265],
- [0.7126377 , 0.65041703, 0.62936115, 0.69839984, 0.5651956 ],
- [0.6023196 , 0.6012137 , 0.7164181 , 0.59447944, 0.7121656 ]],
+ [[0.54814535, 0.5123932 , 0.68307173, 0.72042155, 0.63475394],
+ [0.64413285, 0.70860803, 0.6923877 , 0.5770614 , 0.53430355],
+ [0.57739794, 0.6555867 , 0.6817992 , 0.6585449 , 0.593924 ],
+ [0.64254063, 0.6924439 , 0.7242955 , 0.7274165 , 0.55333275]],
- [[0.6137416 , 0.65805656, 0.6757898 , 0.7231871 , 0.6186665 ],
- [0.662174 , 0.61860013, 0.6509645 , 0.57368857, 0.689906 ],
- [0.7140595 , 0.7226651 , 0.6117408 , 0.5281206 , 0.69103116],
- [0.7082236 , 0.7197187 , 0.6111821 , 0.6187154 , 0.53502613]]],
+ [[0.6204574 , 0.551248 , 0.54466 , 0.70989406, 0.5772743 ],
+ [0.67696744, 0.5659738 , 0.6278838 , 0.51225674, 0.6547737 ],
+ [0.6698583 , 0.527287 , 0.7128138 , 0.500769 , 0.6947695 ],
+ [0.5108964 , 0.694841 , 0.50497264, 0.6312783 , 0.7083145 ]]],
dtype=float32)]
-Total running time of the script: ( 0 minutes 0.013 seconds)
+Total running time of the script: ( 0 minutes 0.007 seconds)
Download Python source code: plot_load_and_predict.py
@@ -200,8 +197,8 @@ output type tensor(float)
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -111,7 +108,7 @@ producer_name=OnnxMLTools
version=0
-Total running time of the script: ( 0 minutes 0.010 seconds)
+Total running time of the script: ( 0 minutes 0.004 seconds)
Download Python source code: plot_metadata.py
@@ -186,8 +183,8 @@ version=0
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -61,14 +58,14 @@ in ONNX format than looking into its node with
onnx. This example demonstrates
how to draw a model and to retrieve it in json
format.
-
+
+
-Retrieve a model in JSON format¶
+Retrieve a model in JSON format¶
That’s the most simple way.
from onnxruntime.datasets import get_example
@@ -145,7 +142,7 @@ opset_import {
-Draw a model with ONNX¶
+Draw a model with ONNX¶
We use net_drawer.py
included in onnx package.
We use onnx to load the model
@@ -183,10 +180,10 @@ in a different way than before.
plt.imshow(image)
-
<matplotlib.image.AxesImage object at 0x7f3f51301840>
+
<matplotlib.image.AxesImage object at 0x7f2b5427f280>
-Total running time of the script: ( 0 minutes 0.322 seconds)
+Total running time of the script: ( 0 minutes 0.290 seconds)
Download Python source code: plot_pipeline.py
@@ -262,8 +259,8 @@ in a different way than before.
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -106,7 +103,7 @@ before running the predictions.
print(prof_file)
-onnxruntime_profile__2022-12-09_23-45-49.json
+onnxruntime_profile__2023-01-20_00-04-24.json
The results are stored un a file in JSON format.
@@ -122,20 +119,20 @@ Let’s see what it contains.
[{'args': {},
'cat': 'Session',
- 'dur': 65,
+ 'dur': 83,
'name': 'model_loading_array',
'ph': 'X',
- 'pid': 2734,
- 'tid': 2734,
- 'ts': 1},
+ 'pid': 2666,
+ 'tid': 2666,
+ 'ts': 2},
{'args': {},
'cat': 'Session',
- 'dur': 329,
+ 'dur': 335,
'name': 'session_initialization',
'ph': 'X',
- 'pid': 2734,
- 'tid': 2734,
- 'ts': 83}]
+ 'pid': 2666,
+ 'tid': 2666,
+ 'ts': 103}]
Total running time of the script: ( 0 minutes 0.007 seconds)
@@ -213,8 +210,8 @@ Let’s see what it contains.
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -58,16 +55,16 @@ to download the full example code
This example demonstrates an end to end scenario
starting with the training of a machine learned model
to its use in its converted from.
-
+
+
-Train a logistic regression¶
+Train a logistic regression¶
The first step consists in retrieving the iris datset.
from sklearn.datasets import load_iris
@@ -86,6 +83,16 @@ to its use in its converted from.
clr.fit(X_train, y_train)
+/home/runner/.local/lib/python3.10/site-packages/sklearn/linear_model/_logistic.py:444: ConvergenceWarning: lbfgs failed to converge (status=1):
+STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
+
+Increase the number of iterations (max_iter) or scale the data as shown in:
+ https://scikit-learn.org/stable/modules/preprocessing.html
+Please also refer to the documentation for alternative solver options:
+ https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
+ n_iter_i = _check_optimize_result(
+
+
LogisticRegression()
In a Jupyter environment, please rerun this cell to show the HTML representation or trust the notebook.
On GitHub, the HTML representation is unable to render, please try loading this page with nbviewer.org.LogisticRegression()
@@ -98,14 +105,14 @@ and we show the confusion matrix.
print(confusion_matrix(y_test, pred))
-[[ 9 0 0]
- [ 0 12 0]
- [ 0 1 16]]
+[[11 0 0]
+ [ 0 15 0]
+ [ 0 2 10]]
-Conversion to ONNX format¶
+Conversion to ONNX format¶
We use module
sklearn-onnx
to convert the model into ONNX format.
@@ -142,15 +149,15 @@ output name='output_label' and shape=[None]
print(confusion_matrix(pred, pred_onx))
-[[ 9 0 0]
- [ 0 13 0]
- [ 0 0 16]]
+[[11 0 0]
+ [ 0 17 0]
+ [ 0 0 10]]
The prediction are perfectly identical.
-Probabilities¶
+Probabilities¶
Probabilities are needed to compute other
relevant metrics such as the ROC Curve.
Let’s see how to get them first with
@@ -159,9 +166,9 @@ scikit-learn.
print(prob_sklearn[:3])
-[[9.74792469e-01 2.52074267e-02 1.04082095e-07]
- [2.04372454e-08 3.27727275e-03 9.96722707e-01]
- [3.58622821e-01 6.39558909e-01 1.81826980e-03]]
+[[2.51652941e-02 9.51347879e-01 2.34868266e-02]
+ [4.19825782e-02 8.96096750e-01 6.19206722e-02]
+ [1.35280393e-04 6.31904868e-02 9.36674233e-01]]
And then with ONNX Runtime.
@@ -174,9 +181,9 @@ The probabilies appear to be
pprint.pprint(prob_rt[0:3])
-[{0: 0.97479248046875, 1: 0.02520740032196045, 2: 1.0408190576072229e-07},
- {0: 2.043722346911636e-08, 1: 0.0032772724516689777, 2: 0.9967227578163147},
- {0: 0.35862284898757935, 1: 0.6395589113235474, 2: 0.0018182684434577823}]
+[{0: 0.02516530267894268, 1: 0.9513478875160217, 2: 0.02348681539297104},
+ {0: 0.041982587426900864, 1: 0.8960967659950256, 2: 0.06192063167691231},
+ {0: 0.00013528029376175255, 1: 0.06319047510623932, 2: 0.9366742372512817}]
Let’s benchmark.
@@ -200,11 +207,11 @@ The probabilies appear to be
Execution time for clr.predict
-Average 8.19e-05 min=7.17e-05 max=0.000104
+Average 5.2e-05 min=5.01e-05 max=6.67e-05
Execution time for ONNX Runtime
-Average 3.77e-05 min=3.46e-05 max=4.94e-05
+Average 3.26e-05 min=2.88e-05 max=4.42e-05
-3.7683185000219054e-05
+3.260208500009298e-05
Let’s benchmark a scenario similar to what a webservice
@@ -232,11 +239,11 @@ as opposed to a batch of prediction.
Execution time for clr.predict
-Average 0.00675 min=0.00645 max=0.00818
+Average 0.00474 min=0.00472 max=0.0048
Execution time for sess_predict
-Average 0.00192 min=0.00178 max=0.0025
+Average 0.00124 min=0.00122 max=0.00128
-0.0019168183650000968
+0.0012437381899999878
Let’s do the same for the probabilities.
@@ -253,11 +260,11 @@ Average 0.00192 min=0.00178 max=0.0025
Execution time for predict_proba
-Average 0.00959 min=0.00917 max=0.0106
+Average 0.00697 min=0.00695 max=0.00706
Execution time for sess_predict_proba
-Average 0.00197 min=0.00189 max=0.00221
+Average 0.0013 min=0.00129 max=0.00132
-0.001971747110000308
+0.0013020304249994296
This second comparison is better as
@@ -266,7 +273,7 @@ computes the label and the probabilities
in every case.
-Benchmark with RandomForest¶
+Benchmark with RandomForest¶
We first train and save a model in ONNX format.
from sklearn.ensemble import RandomForestClassifier
@@ -295,11 +302,11 @@ in every case.
Execution time for predict_proba
-Average 1.14 min=1.12 max=1.18
+Average 0.806 min=0.802 max=0.813
Execution time for sess_predict_proba
-Average 0.00248 min=0.00229 max=0.00335
+Average 0.00166 min=0.00163 max=0.00172
-0.002478402585000481
+0.0016625346749998473
Let’s see with different number of trees.
@@ -334,40 +341,40 @@ Average 0.00248 min=0.00229 max=0.00335

5
-Average 0.0958 min=0.0905 max=0.105
-Average 0.0017 min=0.0016 max=0.00179
+Average 0.0661 min=0.0649 max=0.0702
+Average 0.00122 min=0.00121 max=0.00125
10
-Average 0.149 min=0.147 max=0.15
-Average 0.00171 min=0.00159 max=0.0018
+Average 0.105 min=0.104 max=0.107
+Average 0.00125 min=0.00123 max=0.0013
15
-Average 0.196 min=0.193 max=0.198
-Average 0.00172 min=0.00162 max=0.00182
+Average 0.142 min=0.142 max=0.142
+Average 0.00124 min=0.00124 max=0.00127
20
-Average 0.246 min=0.243 max=0.248
-Average 0.00178 min=0.00167 max=0.00193
+Average 0.181 min=0.181 max=0.181
+Average 0.00126 min=0.00125 max=0.00129
25
-Average 0.318 min=0.313 max=0.323
-Average 0.00184 min=0.00173 max=0.00193
+Average 0.221 min=0.22 max=0.223
+Average 0.00129 min=0.00128 max=0.00132
30
-Average 0.358 min=0.352 max=0.364
-Average 0.00185 min=0.00177 max=0.0019
+Average 0.259 min=0.259 max=0.259
+Average 0.00129 min=0.00128 max=0.00133
35
-Average 0.408 min=0.405 max=0.411
-Average 0.00196 min=0.00187 max=0.00221
+Average 0.301 min=0.298 max=0.305
+Average 0.00133 min=0.00132 max=0.00136
40
-Average 0.481 min=0.477 max=0.484
-Average 0.00196 min=0.00191 max=0.002
+Average 0.336 min=0.335 max=0.336
+Average 0.00134 min=0.00132 max=0.00136
45
-Average 0.536 min=0.524 max=0.547
-Average 0.00197 min=0.00191 max=0.00207
+Average 0.378 min=0.376 max=0.381
+Average 0.00135 min=0.00133 max=0.00139
50
-Average 0.565 min=0.562 max=0.571
-Average 0.00203 min=0.00195 max=0.00217
+Average 0.414 min=0.414 max=0.416
+Average 0.00136 min=0.00134 max=0.0014
-<matplotlib.legend.Legend object at 0x7f3f3bce87c0>
+<matplotlib.legend.Legend object at 0x7f2b3cb88ee0>
-Total running time of the script: ( 5 minutes 17.899 seconds)
+Total running time of the script: ( 3 minutes 46.170 seconds)
Download Python source code: plot_train_convert_predict.py
@@ -442,8 +449,8 @@ Average 0.00203 min=0.00195 max=0.00217
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -49,46 +46,41 @@
Computation times¶
-05:19.660 total execution time for auto_examples files:
+03:47.900 total execution time for auto_examples files:
-
-
-
-
-
Train, convert and predict with ONNX Runtime (plot_train_convert_predict.py)
-05:17.899
+03:46.170
0.0 MB
Train, convert and predict with ONNX Runtime (plot_convert_pipeline_vectorizer.py)
-00:01.374
+00:01.392
0.0 MB
Draw a pipeline (plot_pipeline.py)
-00:00.322
+00:00.290
0.0 MB
ONNX Runtime Backend for ONNX (plot_backend.py)
-00:00.021
+00:00.019
0.0 MB
Common errors with onnxruntime (plot_common_errors.py)
-00:00.014
+00:00.011
0.0 MB
Load and predict with ONNX Runtime and a very simple model (plot_load_and_predict.py)
-00:00.013
-0.0 MB
-
-Metadata (plot_metadata.py)
-00:00.010
-0.0 MB
-
-Profile the execution of a simple model (plot_profiling.py)
00:00.007
0.0 MB
+Profile the execution of a simple model (plot_profiling.py)
+00:00.007
+0.0 MB
+
+Metadata (plot_metadata.py)
+00:00.004
+0.0 MB
+
@@ -152,8 +144,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -107,8 +104,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
-
-
@@ -497,8 +494,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
diff --git a/docs/api/python/images/sphx_glr_plot_pipeline_001.png b/docs/api/python/images/sphx_glr_plot_pipeline_001.png
index c190918e2b..be948058dc 100644
Binary files a/docs/api/python/images/sphx_glr_plot_pipeline_001.png and b/docs/api/python/images/sphx_glr_plot_pipeline_001.png differ
diff --git a/docs/api/python/images/sphx_glr_plot_train_convert_predict_001.png b/docs/api/python/images/sphx_glr_plot_train_convert_predict_001.png
index 42ab52b2d8..4454867d41 100644
Binary files a/docs/api/python/images/sphx_glr_plot_train_convert_predict_001.png and b/docs/api/python/images/sphx_glr_plot_train_convert_predict_001.png differ
diff --git a/docs/api/python/images/sphx_glr_plot_train_convert_predict_thumb.png b/docs/api/python/images/sphx_glr_plot_train_convert_predict_thumb.png
index e1c78f8934..4642c0423e 100644
Binary files a/docs/api/python/images/sphx_glr_plot_train_convert_predict_thumb.png and b/docs/api/python/images/sphx_glr_plot_train_convert_predict_thumb.png differ
diff --git a/docs/api/python/index.html b/docs/api/python/index.html
index 85137eb621..9f82e2f11c 100644
--- a/docs/api/python/index.html
+++ b/docs/api/python/index.html
@@ -4,7 +4,7 @@
-
+
@@ -24,9 +24,6 @@
-
-
-
@@ -121,8 +118,8 @@ For more information on ONNX Runtime, please see Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
|
-
-
-
@@ -47,7 +44,8 @@
All modules for which code is available
-- onnxruntime.capi.onnxruntime_inference_collection
+- onnxruntime.backend.backend
+- onnxruntime.capi.onnxruntime_inference_collection
- onnxruntime.capi.onnxruntime_pybind11_state
@@ -109,8 +107,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
diff --git a/docs/api/python/modules/onnxruntime/capi/onnxruntime_inference_collection.html b/docs/api/python/modules/onnxruntime/capi/onnxruntime_inference_collection.html
index 2f687f78aa..eb7c337d7c 100644
--- a/docs/api/python/modules/onnxruntime/capi/onnxruntime_inference_collection.html
+++ b/docs/api/python/modules/onnxruntime/capi/onnxruntime_inference_collection.html
@@ -23,9 +23,6 @@
-
-
-
@@ -71,7 +68,7 @@
def check_and_normalize_provider_args(providers, provider_options, available_provider_names):
- """
+ """
Validates the 'providers' and 'provider_options' arguments and returns a
normalized version.
@@ -149,7 +146,7 @@
class Session:
- """
+ """
This is the main class used to run a model.
"""
@@ -188,7 +185,7 @@
return self._provider_options
def set_providers(self, providers=None, provider_options=None):
- """
+ """
Register the input list of execution providers. The underlying session is re-created.
:param providers: Optional sequence of providers in order of decreasing
@@ -210,13 +207,13 @@
self._reset_session(providers, provider_options)
def disable_fallback(self):
- """
+ """
Disable session.run() fallback mechanism.
"""
self._enable_fallback = False
def enable_fallback(self):
- """
+ """
Enable session.Run() fallback mechanism. If session.Run() fails due to an internal Execution Provider failure,
reset the Execution Providers enabled for this session.
If GPU is enabled, fall back to CUDAExecutionProvider.
@@ -225,7 +222,7 @@
self._enable_fallback = True
def run(self, output_names, input_feed, run_options=None):
- """
+ """
Compute the predictions.
:param output_names: name of the outputs
@@ -259,7 +256,7 @@
raise
def run_with_ort_values(self, output_names, input_dict_ort_values, run_options=None):
- """
+ """
Compute the predictions.
:param output_names: name of the outputs
@@ -305,7 +302,7 @@
raise
def end_profiling(self):
- """
+ """
End profiling and return results in a file.
The results are stored in a filename if the option
@@ -314,7 +311,7 @@
return self._sess.end_profiling()
def get_profiling_start_time_ns(self):
- """
+ """
Return the nanoseconds of profiling's start time
Comparable to time.monotonic_ns() after Python 3.3
On some platforms, this timer may not be as precise as nanoseconds
@@ -327,7 +324,7 @@
return IOBinding(self)
def run_with_iobinding(self, iobinding, run_options=None):
- """
+ """
Compute the predictions.
:param iobinding: the iobinding object that has graph inputs/outputs bind.
@@ -336,7 +333,7 @@
self._sess.run_with_iobinding(iobinding._iobinding, run_options)
def run_with_ortvaluevector(self, run_options, feed_names, feeds, fetch_names, fetches, fetch_devices):
- """
+ """
Compute the predictions similar to other run_*() methods but with minimal C++/Python conversion overhead.
:param run_options: See :class:`onnxruntime.RunOptions`.
@@ -350,12 +347,12 @@
[docs]class InferenceSession(Session):
- """
+ """
This is the main class used to run a model.
"""
def __init__(self, path_or_bytes, sess_options=None, providers=None, provider_options=None, **kwargs):
- """
+ """
:param path_or_bytes: filename or serialized ONNX or ORT format model in a byte string
:param sess_options: session options
:param providers: Optional sequence of providers in order of decreasing
@@ -486,7 +483,7 @@
[docs]class IOBinding:
- """
+ """
This class provides API to bind input/output to a specified device, e.g. GPU.
"""
@@ -495,7 +492,7 @@
self._numpy_obj_references = {}
[docs] def bind_cpu_input(self, name, arr_on_cpu):
- """
+ """
bind an input to array on CPU
:param name: input name
:param arr_on_cpu: input values as a python array on CPU
@@ -507,7 +504,7 @@
self._iobinding.bind_input(name, arr_on_cpu)
[docs] def bind_input(self, name, device_type, device_id, element_type, shape, buffer_ptr):
- """
+ """
:param name: input name
:param device_type: e.g. cpu, cuda
:param device_id: device id, e.g. 0
@@ -528,7 +525,7 @@
)
[docs] def bind_ortvalue_input(self, name, ortvalue):
- """
+ """
:param name: input name
:param ortvalue: OrtValue instance to bind
"""
@@ -546,7 +543,7 @@
shape=None,
buffer_ptr=None,
):
- """
+ """
:param name: output name
:param device_type: e.g. cpu, cuda, cpu by default
:param device_id: device id, e.g. 0
@@ -586,7 +583,7 @@
)
[docs] def bind_ortvalue_output(self, name, ortvalue):
- """
+ """
:param name: output name
:param ortvalue: OrtValue instance to bind
"""
@@ -596,7 +593,7 @@
self._iobinding.synchronize_outputs()
[docs] def get_outputs(self):
- """
+ """
Returns the output OrtValues from the Run() that preceded the call.
The data buffer of the obtained OrtValues may not reside on CPU memory
"""
@@ -609,7 +606,7 @@
return self._iobinding.get_outputs()
[docs] def copy_outputs_to_cpu(self):
- """Copy output contents to CPU (if on another device). No-op if already on the CPU."""
+ """Copy output contents to CPU (if on another device). No-op if already on the CPU."""
return self._iobinding.copy_outputs_to_cpu()
def clear_binding_inputs(self):
@@ -620,7 +617,7 @@
[docs]class OrtValue:
- """
+ """
A data structure that supports all ONNX data formats (tensors and non-tensors) that allows users
to place the data backing these on a device, for example, on a CUDA supported device.
This class provides APIs to construct and deal with OrtValues.
@@ -643,7 +640,7 @@
[docs] @staticmethod
def ortvalue_from_numpy(numpy_obj, device_type="cpu", device_id=0):
- """
+ """
Factory method to construct an OrtValue (which holds a Tensor) from a given Numpy object
A copy of the data in the Numpy object is held by the OrtValue only if the device is NOT cpu
@@ -668,7 +665,7 @@
[docs] @staticmethod
def ortvalue_from_shape_and_type(shape=None, element_type=None, device_type="cpu", device_id=0):
- """
+ """
Factory method to construct an OrtValue (which holds a Tensor) from given shape and element_type
:param shape: List of integers indicating the shape of the OrtValue
@@ -693,76 +690,76 @@
[docs] @staticmethod
def ort_value_from_sparse_tensor(sparse_tensor):
- """
+ """
The function will construct an OrtValue instance from a valid SparseTensor
The new instance of OrtValue will assume the ownership of sparse_tensor
"""
return OrtValue(C.OrtValue.ort_value_from_sparse_tensor(sparse_tensor._get_c_tensor()))
[docs] def as_sparse_tensor(self):
- """
+ """
The function will return SparseTensor contained in this OrtValue
"""
return SparseTensor(self._ortvalue.as_sparse_tensor())
[docs] def data_ptr(self):
- """
+ """
Returns the address of the first element in the OrtValue's data buffer
"""
return self._ortvalue.data_ptr()
[docs] def device_name(self):
- """
+ """
Returns the name of the device where the OrtValue's data buffer resides e.g. cpu, cuda
"""
return self._ortvalue.device_name().lower()
[docs] def shape(self):
- """
+ """
Returns the shape of the data in the OrtValue
"""
return self._ortvalue.shape()
[docs] def data_type(self):
- """
+ """
Returns the data type of the data in the OrtValue
"""
return self._ortvalue.data_type()
[docs] def element_type(self):
- """
+ """
Returns the proto type of the data in the OrtValue
if the OrtValue is a tensor.
"""
return self._ortvalue.element_type()
[docs] def has_value(self):
- """
+ """
Returns True if the OrtValue corresponding to an
optional type contains data, else returns False
"""
return self._ortvalue.has_value()
[docs] def is_tensor(self):
- """
+ """
Returns True if the OrtValue contains a Tensor, else returns False
"""
return self._ortvalue.is_tensor()
[docs] def is_sparse_tensor(self):
- """
+ """
Returns True if the OrtValue contains a SparseTensor, else returns False
"""
return self._ortvalue.is_sparse_tensor()
[docs] def is_tensor_sequence(self):
- """
+ """
Returns True if the OrtValue contains a Tensor Sequence, else returns False
"""
return self._ortvalue.is_tensor_sequence()
[docs] def numpy(self):
- """
+ """
Returns a Numpy object from the OrtValue.
Valid only for OrtValues holding Tensors. Throws for OrtValues holding non-Tensors.
Use accessors to gain a reference to non-Tensor objects such as SparseTensor
@@ -770,7 +767,7 @@
return self._ortvalue.numpy()
[docs] def update_inplace(self, np_arr):
- """
+ """
Update the OrtValue in place with a new Numpy array. The numpy contents
are copied over to the device memory backing the OrtValue. It can be used
to update the input valuess for an InferenceSession with CUDA graph
@@ -781,12 +778,12 @@
[docs]class OrtDevice:
- """
+ """
A data structure that exposes the underlying C++ OrtDevice
"""
def __init__(self, c_ort_device):
- """
+ """
Internal constructor
"""
if isinstance(c_ort_device, C.OrtDevice):
@@ -797,7 +794,7 @@
)
def _get_c_device(self):
- """
+ """
Internal accessor to underlying object
"""
return self._ort_device
@@ -820,7 +817,7 @@
[docs]class SparseTensor:
- """
+ """
A data structure that project the C++ SparseTensor object
The class provides API to work with the object.
Depending on the format, the class will hold more than one buffer
@@ -828,7 +825,7 @@
"""
def __init__(self, sparse_tensor):
- """
+ """
Internal constructor
"""
if isinstance(sparse_tensor, C.SparseTensor):
@@ -844,7 +841,7 @@
[docs] @staticmethod
def sparse_coo_from_numpy(dense_shape, values, coo_indices, ort_device):
- """
+ """
Factory method to construct a SparseTensor in COO format from given arguments
:param dense_shape: 1-D numpy array(int64) or a python list that contains a dense_shape of the sparse tensor
@@ -870,7 +867,7 @@
[docs] @staticmethod
def sparse_csr_from_numpy(dense_shape, values, inner_indices, outer_indices, ort_device):
- """
+ """
Factory method to construct a SparseTensor in CSR format from given arguments
:param dense_shape: 1-D numpy array(int64) or a python list that contains a dense_shape of the
@@ -901,7 +898,7 @@
)
[docs] def values(self):
- """
+ """
The method returns a numpy array that is backed by the native memory
if the data type is numeric. Otherwise, the returned numpy array that contains
copies of the strings.
@@ -909,7 +906,7 @@
return self._tensor.values()
[docs] def as_coo_view(self):
- """
+ """
The method will return coo representation of the sparse tensor which will enable
querying COO indices. If the instance did not contain COO format, it would throw.
You can query coo indices as:
@@ -923,7 +920,7 @@
return self._tensor.get_coo_data()
[docs] def as_csrc_view(self):
- """
+ """
The method will return CSR(C) representation of the sparse tensor which will enable
querying CRS(C) indices. If the instance dit not contain CSR(C) format, it would throw.
You can query indices as:
@@ -938,7 +935,7 @@
return self._tensor.get_csrc_data()
[docs] def as_blocksparse_view(self):
- """
+ """
The method will return coo representation of the sparse tensor which will enable
querying BlockSparse indices. If the instance did not contain BlockSparse format, it would throw.
You can query coo indices as:
@@ -952,7 +949,7 @@
return self._tensor.get_blocksparse_data()
[docs] def to_cuda(self, ort_device):
- """
+ """
Returns a copy of this instance on the specified cuda device
:param ort_device: with name 'cuda' and valid gpu device id
@@ -967,25 +964,25 @@
return SparseTensor(self._tensor.to_cuda(ort_device._get_c_device()))
[docs] def format(self):
- """
+ """
Returns a OrtSparseFormat enumeration
"""
return self._tensor.format
[docs] def dense_shape(self):
- """
+ """
Returns a numpy array(int64) containing a dense shape of a sparse tensor
"""
return self._tensor.dense_shape()
[docs] def data_type(self):
- """
+ """
Returns a string data type of the data in the OrtValue
"""
return self._tensor.data_type()
[docs] def device_name(self):
- """
+ """
Returns the name of the device where the SparseTensor data buffers reside e.g. cpu, cuda
"""
return self._tensor.device_name().lower()
@@ -1051,8 +1048,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
diff --git a/docs/api/python/search.html b/docs/api/python/search.html
index e2a18695f0..6c125936dd 100644
--- a/docs/api/python/search.html
+++ b/docs/api/python/search.html
@@ -24,9 +24,6 @@
-
-
-
@@ -131,8 +128,8 @@
©2018-2021, Microsoft.
|
- Powered by Sphinx 5.3.0
- & Alabaster 0.7.12
+ Powered by Sphinx 6.1.3
+ & Alabaster 0.7.13
diff --git a/docs/api/python/searchindex.js b/docs/api/python/searchindex.js
index 45e16087b6..48103518f4 100644
--- a/docs/api/python/searchindex.js
+++ b/docs/api/python/searchindex.js
@@ -1 +1 @@
-Search.setIndex({"docnames": ["api_summary", "auto_examples/index", "auto_examples/plot_backend", "auto_examples/plot_common_errors", "auto_examples/plot_convert_pipeline_vectorizer", "auto_examples/plot_load_and_predict", "auto_examples/plot_metadata", "auto_examples/plot_pipeline", "auto_examples/plot_profiling", "auto_examples/plot_train_convert_predict", "auto_examples/sg_execution_times", "examples_md", "index", "tutorial"], "filenames": ["api_summary.rst", "auto_examples/index.rst", "auto_examples/plot_backend.rst", "auto_examples/plot_common_errors.rst", "auto_examples/plot_convert_pipeline_vectorizer.rst", "auto_examples/plot_load_and_predict.rst", "auto_examples/plot_metadata.rst", "auto_examples/plot_pipeline.rst", "auto_examples/plot_profiling.rst", "auto_examples/plot_train_convert_predict.rst", "auto_examples/sg_execution_times.rst", "examples_md.rst", "index.rst", "tutorial.rst"], "titles": ["API", "Gallery of examples", "ONNX Runtime Backend for ONNX", "Common errors with onnxruntime", "Train, convert and predict with ONNX Runtime", "Load and predict with ONNX Runtime and a very simple model", "Metadata", "Draw a pipeline", "Profile the execution of a simple model", "Train, convert and predict with ONNX Runtime", "Computation times", "Gallery of examples", "Python Bindings for ONNX Runtime", "Tutorial"], "terms": {"onnx": [0, 1, 3, 6, 8, 10], "runtim": [0, 1, 6, 8, 10], "infer": 0, "graph": [0, 7], "format": [0, 2, 3, 6, 8], "ort": 0, "memori": 0, "disk": 0, "constrain": 0, "environ": [0, 4, 9], "The": [0, 2, 3, 4, 5, 8, 9, 13], "consum": 0, "produc": [0, 3, 6], "can": [0, 2, 3, 4, 8, 13], "specifi": [0, 13], "access": 0, "wai": [0, 7, 13], "best": 0, "match": 0, "your": [0, 3], "scenario": [0, 4, 9, 13], "i": [0, 2, 3, 4, 5, 6, 7, 9, 12, 13], "main": 0, "It": [0, 3, 5, 6, 13], "us": [0, 2, 3, 4, 6, 7, 9], "an": [0, 3, 4, 5, 7, 9, 13], "well": 0, "applic": [0, 13], "configur": 0, "session": [0, 8], "onnxruntim": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 13], "name": [0, 2, 3, 4, 5, 7, 8, 9, 13], "consist": [0, 4, 9], "comput": [0, 2, 4, 5, 8, 9, 13], "oper": [0, 13], "implement": [0, 2], "optim": [0, 13], "kernel": 0, "differ": [0, 7, 9], "hardwar": 0, "target": [0, 4, 9, 13], "orchestr": 0, "execut": [0, 1, 9, 10], "via": 0, "provid": [0, 3, 4, 5, 6, 8, 9, 13], "contain": [0, 6, 8], "set": [0, 4, 9, 13], "specif": [0, 6, 13], "gpu": [0, 2, 13], "iot": 0, "etc": 0, "ar": [0, 8, 9, 13], "paramet": 0, "from": [0, 2, 3, 4, 5, 6, 7, 8, 9, 13], "chosen": 0, "prioriti": 0, "order": 0, "given": 0, "list": [0, 13], "In": [0, 4, 9, 13], "exampl": [0, 2, 3, 4, 5, 6, 7, 8, 9, 12], "below": 0, "cuda": 0, "If": 0, "cudaexecutionprovid": 0, "cpuexecutionprovid": 0, "avail": [0, 5], "found": 0, "here": [0, 2, 3, 4, 5, 6, 7, 8, 9, 13], "sinc": 0, "1": [0, 2, 3, 4, 6, 7, 8, 9], "10": [0, 4, 9, 13], "you": [0, 4, 13], "must": 0, "explicitli": 0, "onli": [0, 3], "time": [0, 2, 3, 4, 5, 6, 7, 8, 9], "allow": 0, "explicit": 0, "follow": [0, 2, 3, 4], "assum": 0, "nvidia": 0, "replac": [0, 3], "suppli": 0, "other": [0, 2, 3, 7, 9, 13], "For": [0, 12], "enabl": [0, 8], "profil": [0, 1, 10], "enable_profil": [0, 8], "true": [0, 4, 8, 9], "sess_opt": 0, "its": [0, 4, 5, 7, 9, 13], "On": [0, 4, 9], "default": 0, "map": [0, 4], "nativ": 0, "python": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "structur": 0, "numpi": [0, 2, 3, 4, 5, 8, 9, 13], "arrai": [0, 2, 3, 5, 8, 9], "dictionari": [0, 4], "x": [0, 2, 3, 4, 5, 7, 8, 9, 13], "ortvalue_from_numpi": 0, "device_nam": 0, "shape": [0, 3, 4, 5, 7, 9], "data_typ": [0, 4, 7, 9, 13], "tensor": [0, 3, 4, 5], "float": [0, 3, 4, 5], "is_tensor": 0, "np": [0, 2, 4], "array_equ": 0, "part": 0, "feed": [0, 3], "result": [0, 8], "y": [0, 4, 5, 7, 9, 13], "By": 0, "alwai": 0, "place": 0, "": [0, 2, 4, 5, 6, 7, 8, 9], "have": 0, "mai": 0, "than": [0, 3, 7, 13], "becaus": [0, 4], "introduc": 0, "copi": 0, "between": [0, 2, 9], "support": [0, 8], "custom": 0, "all": [0, 1, 3], "user": 0, "back": 0, "thi": [0, 2, 3, 4, 5, 7, 8, 9, 13], "call": [0, 4], "To": 0, "featur": 0, "run_with_iobind": 0, "A": 0, "instanc": [0, 6], "onto": 0, "io_bind": 0, "over": 0, "node": [0, 7], "bind_cpu_input": 0, "bind_output": 0, "copy_outputs_to_cpu": 0, "0": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13], "directli": [0, 2], "x_ortvalu": 0, "bind_input": 0, "device_typ": 0, "device_id": 0, "element_typ": 0, "float32": [0, 2, 3, 5, 8, 9, 13], "buffer_ptr": 0, "data_ptr": 0, "both": 0, "also": [0, 2, 5, 13], "y_ortvalu": 0, "ortvalue_from_shape_and_typ": 0, "3": [0, 2, 3, 5, 6, 7, 8, 9], "2": [0, 2, 3, 4, 6, 7, 8, 9], "chang": [0, 13], "actual": [0, 3, 4], "being": 0, "bound": 0, "request": 0, "alloc": 0, "particularli": 0, "dynam": 0, "get_output": [0, 3, 4, 5, 9, 13], "get": [0, 9, 13], "correspond": 0, "thu": 0, "bind": 0, "return": [0, 3, 8, 9], "which": [0, 3, 4, 6, 7, 13], "ha": [0, 4, 9], "ort_output": 0, "addit": 0, "work": 0, "while": 0, "inferenc": 0, "bind_ortvalue_input": 0, "bind_ortvalue_output": 0, "pytorch": 0, "x_tensor": 0, "contigu": 0, "tupl": 0, "y_shape": 0, "need": [0, 8, 9], "y_tensor": 0, "torch": 0, "empti": 0, "dtype": [0, 2, 3, 5, 8], "path_or_byt": 0, "none": [0, 3, 4, 8, 9, 13], "provider_opt": 0, "kwarg": 0, "sourc": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "filenam": [0, 8], "serial": 0, "byte": [0, 3], "string": 0, "sequenc": 0, "decreas": 0, "preced": 0, "valu": [0, 4], "either": [0, 2, 3], "dict": 0, "type": [0, 3, 4, 5, 7], "unless": [0, 4], "so": 0, "add_session_config_entri": 0, "load_model_format": 0, "file": [0, 8, 10], "extens": 0, "when": [0, 6], "ani": [0, 3], "should": 0, "mean": 0, "capabl": 0, "otherwis": 0, "disable_fallback": 0, "disabl": 0, "fallback": 0, "mechan": 0, "enable_fallback": 0, "fail": [0, 3, 4, 13], "due": [0, 3], "failur": 0, "reset": 0, "fall": 0, "end_profil": [0, 8], "end": [0, 4, 9], "store": [0, 7, 8], "get_input": [0, 3, 4, 5, 8, 9, 13], "metadata": [0, 1, 10], "get_modelmeta": [0, 6], "see": [0, 5, 6, 8, 9, 12, 13], "get_overridable_initi": 0, "includ": [0, 4, 7], "initi": [0, 7], "get_profiling_start_time_n": 0, "nanosecond": 0, "start": [0, 3, 4, 9], "compar": [0, 4, 9], "monotonic_n": 0, "after": 0, "some": [0, 8], "platform": 0, "timer": [0, 9], "precis": 0, "window": 0, "maco": 0, "100n": 0, "get_provider_opt": 0, "regist": 0, "get_provid": 0, "get_session_opt": 0, "object": [0, 7, 9], "output_nam": [0, 3, 5], "input_fe": 0, "run_opt": 0, "predict": [0, 1, 2, 3, 8, 10, 13], "input_nam": [0, 3, 5, 8, 9, 13], "input_valu": 0, "everi": [0, 9], "spars": [0, 4], "sess": [0, 3, 4, 5, 6, 8, 9, 13], "run_with_ort_valu": 0, "input_dict_ort_valu": 0, "input_ort_valu": 0, "how": [0, 2, 5, 6, 7, 8, 9], "creat": [0, 4, 13], "run_with_ortvaluevector": 0, "feed_nam": 0, "fetch_nam": 0, "fetch": [0, 4], "fetch_devic": 0, "similar": [0, 4, 9], "run_": 0, "method": 0, "minim": 0, "c": [0, 9], "convers": 0, "overhead": 0, "set_provid": 0, "underli": 0, "re": [0, 3, 5, 8], "self": 0, "capi": [0, 2, 3, 4], "onnxruntime_pybind11_st": [0, 2, 3, 4], "inform": [0, 12], "singl": [0, 3], "add_run_config_entri": 0, "arg0": 0, "str": 0, "arg1": 0, "entri": 0, "pair": 0, "get_run_config_entri": 0, "kei": 0, "properti": 0, "log_severity_level": 0, "log": 0, "sever": [0, 3], "level": [0, 13], "particular": 0, "invoc": 0, "verbos": 0, "info": 0, "warn": [0, 3, 4], "error": [0, 1, 10], "4": [0, 3, 5, 7, 8, 9, 13], "fatal": 0, "log_verbosity_level": 0, "vlog": 0, "debug": 0, "build": 0, "run_log_severity_level": 0, "appli": 0, "logid": 0, "identifi": 0, "gener": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "only_execute_path_to_fetch": 0, "synchronize_execution_provid": 0, "synchron": 0, "termin": 0, "current": 0, "individu": 0, "exit": 0, "gracefulli": 0, "statu": [0, 13], "add_external_initi": 0, "add_free_dimension_override_by_denot": 0, "int": [0, 4], "dimens": [0, 2, 3], "size": 0, "each": 0, "denot": 0, "associ": 0, "free": 0, "add_free_dimension_override_by_nam": 0, "within": 0, "add_initi": 0, "enable_cpu_mem_arena": 0, "arena": 0, "pre": 0, "futur": 0, "usag": 0, "fals": [0, 4], "don": 0, "t": [0, 4, 8], "want": 0, "enable_mem_pattern": 0, "pattern": 0, "enable_mem_reus": 0, "reus": 0, "execution_mod": 0, "mode": 0, "sequenti": 0, "execution_ord": 0, "basic": 0, "topolog": 0, "get_session_config_entri": 0, "graph_optimization_level": 0, "inter_op_num_thread": 0, "number": [0, 3, 9, 13], "thread": 0, "parallel": 0, "across": 0, "let": [0, 2, 5, 6, 8, 9], "choos": 0, "intra_op_num_thread": 0, "session_log_severity_level": 0, "logger": 0, "id": 0, "optimized_model_filepath": 0, "path": 0, "save_model_format": 0, "config": 0, "case": [0, 4, 9], "insensit": 0, "profile_file_prefix": 0, "prefix": 0, "append": [0, 9], "register_custom_ops_librari": 0, "share": 0, "librari": 0, "op": 0, "requir": 0, "use_deterministic_comput": 0, "whether": 0, "determinist": 0, "numpy_obj": 0, "non": 0, "construct": 0, "deal": 0, "as_sparse_tensor": 0, "function": [0, 4], "address": 0, "first": [0, 3, 4, 9, 13], "element": 0, "buffer": 0, "where": 0, "resid": 0, "e": [0, 2, 3, 4], "g": 0, "proto": 0, "has_valu": 0, "els": 0, "is_sparse_tensor": 0, "is_tensor_sequ": 0, "valid": 0, "hold": 0, "throw": 0, "accessor": 0, "gain": 0, "refer": [0, 4, 13], "static": 0, "ort_value_from_sparse_tensor": 0, "sparse_tensor": 0, "new": 0, "ownership": 0, "factori": 0, "held": 0, "NOT": 0, "integ": 0, "indic": [0, 2, 3], "update_inplac": 0, "np_arr": 0, "updat": 0, "content": [0, 7], "valuess": 0, "project": [0, 12], "depend": [0, 2, 13], "more": [0, 12, 13], "one": [0, 4, 7, 9, 13], "constructor": 0, "as_blocksparse_view": 0, "coo": 0, "represent": [0, 4, 9], "queri": 0, "blockspars": 0, "did": 0, "would": 0, "block_sparse_indic": 0, "as_coo_view": 0, "coo_indic": 0, "as_csrc_view": 0, "csr": 0, "cr": 0, "dit": 0, "inner_ndic": 0, "inner": 0, "outer_ndic": 0, "outer": 0, "dense_shap": 0, "int64": [0, 3, 4], "dens": 0, "ortsparseformat": 0, "enumer": 0, "sparse_coo_from_numpi": 0, "ort_devic": 0, "argument": 0, "d": [0, 9], "homogen": 0, "zero": 0, "linear": 0, "index": [0, 2, 3], "length": 0, "equal": 0, "coordin": 0, "nnz": 0, "exactli": 0, "twice": 0, "describ": [0, 13], "own": 0, "nummpi": 0, "suppor": 0, "numer": 0, "primit": 0, "them": [0, 4, 9], "storag": 0, "increment": 0, "count": 0, "decrement": 0, "gc": 0, "doe": [0, 3, 8], "those": 0, "sparse_csr_from_numpi": 0, "inner_indic": 0, "outer_indic": 0, "row": [0, 4], "col": 0, "Its": 0, "gced": 0, "to_cuda": 0, "alreadi": 0, "cross": 0, "present": 0, "arr_on_cpu": 0, "param": 0, "pointer": 0, "anoth": 0, "No": 0, "obtain": 0, "c_ort_devic": 0, "expos": 0, "These": 0, "cannot": [0, 3], "instanti": 0, "thei": 0, "defin": [0, 13], "about": [0, 4], "usual": [0, 13], "facilit": 0, "comparison": [0, 9], "custom_metadata_map": [0, 6], "descript": [0, 6], "domain": [0, 6, 7], "graph_descript": 0, "host": 0, "graph_nam": [0, 6], "producer_nam": [0, 6, 7], "version": [0, 6, 7, 8], "definit": [0, 5], "arg": [0, 8], "regular": [0, 4], "perform": [0, 12, 13], "usabl": 0, "verif": 0, "conform": 0, "is_compat": 0, "compat": 0, "unus": 0, "ex": 0, "boolean": 0, "prepar": [0, 2], "readi": 0, "modelproto": [0, 7], "compil": [0, 2], "supports_devic": 0, "check": 0, "test": [0, 4, 7, 9], "suit": 0, "draw": [1, 10], "pipelin": [1, 10, 13], "load": [1, 2, 3, 4, 6, 7, 8, 9, 10], "veri": [1, 4, 8, 10], "simpl": [1, 2, 6, 7, 10], "model": [1, 2, 3, 4, 6, 9, 10, 12], "backend": [1, 10], "train": [1, 3, 6, 10], "convert": [1, 6, 7, 10], "common": [1, 4, 9, 10, 13], "download": [1, 2, 3, 4, 5, 6, 7, 8, 9], "code": [1, 2, 3, 4, 5, 6, 7, 8, 9, 13], "auto_examples_python": 1, "zip": 1, "jupyt": [1, 2, 3, 4, 5, 6, 7, 8, 9], "notebook": [1, 2, 3, 4, 5, 6, 7, 8, 9], "auto_examples_jupyt": 1, "sphinx": [1, 2, 3, 4, 5, 6, 7, 8, 9], "click": [2, 3, 4, 5, 6, 7, 8, 9], "full": [2, 3, 4, 5, 6, 7, 8, 9], "extend": 2, "api": [2, 12], "run": [2, 3, 4, 5, 6, 7, 8, 9], "logist": [2, 3, 6, 13], "regress": [2, 3, 6, 13], "import": [2, 3, 4, 5, 6, 7, 8, 9, 13], "devic": 2, "packag": [2, 4, 7, 13], "wa": [2, 6], "cpu": [2, 13], "dataset": [2, 3, 4, 5, 6, 7, 8, 9, 13], "get_devic": 2, "invalidargu": [2, 3, 4], "get_exampl": [2, 3, 5, 6, 7, 8], "logreg_iri": [2, 3, 6, 9, 13], "rep": 2, "try": [2, 3, 4, 9], "label": [2, 3, 9], "proba": 2, "print": [2, 3, 4, 5, 6, 7, 8, 9, 13], "probabl": [2, 3], "except": [2, 3, 4], "runtimeerror": [2, 3, 4], "onnxruntimeerror": [2, 3, 4], "invalid_argu": [2, 3, 4], "got": [2, 3], "invalid": [2, 3], "input": [2, 3, 4, 5, 7, 9], "float_input": [2, 3, 4, 9, 13], "expect": [2, 3, 4], "pleas": [2, 3, 4, 9, 12, 13], "fix": [2, 3], "without": [2, 13], "framework": [2, 3], "make": 2, "easier": 2, "switch": 2, "multipl": [2, 3], "same": [2, 3, 9], "total": [2, 3, 4, 5, 6, 7, 8, 9, 10, 13], "script": [2, 3, 4, 5, 6, 7, 8, 9], "minut": [2, 3, 4, 5, 6, 7, 8, 9], "021": [2, 10], "second": [2, 3, 4, 5, 6, 7, 8, 9], "plot_backend": [2, 10], "py": [2, 3, 4, 5, 6, 7, 8, 9, 10, 13], "ipynb": [2, 3, 4, 5, 6, 7, 8, 9], "galleri": [2, 3, 4, 5, 6, 7, 8, 9, 12], "look": [3, 4, 7, 9], "situat": 3, "rais": 3, "instead": [3, 4], "step": [3, 4, 9], "favorit": 3, "iri": [3, 9, 13], "take": [3, 4], "vector": [3, 4, 5], "class": 3, "among": 3, "three": 3, "rt": [3, 4, 5, 6, 8, 9, 13], "example2": 3, "inferencesess": [3, 4, 5, 6, 8, 9, 13], "get_available_provid": [3, 4, 5, 6, 8, 9, 13], "bad": 3, "handl": 3, "kind": 3, "5": [3, 5, 7, 8, 9], "6": [3, 7, 8, 9], "float64": 3, "unexpect": [3, 4], "data": [3, 4, 9, 13], "doubl": [3, 4], "output": [3, 4, 5, 7, 9, 13], "misspel": 3, "option": [3, 8, 13], "9505997896194458": 3, "027834143489599228": 3, "021566055715084076": 3, "9974970817565918": 3, "6270167988259345e": 3, "05": [3, 9, 10], "0024466365575790405": 3, "9997311234474182": 3, "787709464906584e": 3, "07": [3, 9], "0002686927327886224": 3, "goe": 3, "necessarili": 3, "r": [3, 8], "rank": 3, "higher": 3, "014": [3, 10], "plot_common_error": [3, 10], "demonstr": [4, 5, 7, 9], "scikit": [4, 6, 9, 13], "learn": [4, 5, 6, 9, 13], "dictvector": 4, "retriev": [4, 5, 9], "boston": 4, "datset": [4, 9], "panda": [4, 9], "sklearn": [4, 6, 9, 13], "load_boston": 4, "model_select": [4, 9, 13], "train_test_split": [4, 9, 13], "x_train": [4, 9, 13], "x_test": [4, 9, 13], "y_train": [4, 9, 13], "y_test": [4, 9, 13], "x_train_dict": 4, "datafram": [4, 9], "to_dict": 4, "x_test_dict": 4, "home": [4, 13], "runner": [4, 13], "local": [4, 13], "lib": [4, 13], "python3": [4, 13], "site": [4, 13], "util": 4, "deprec": 4, "87": 4, "futurewarn": 4, "remov": 4, "hous": 4, "price": 4, "ethic": 4, "problem": 4, "document": [4, 13], "further": 4, "detail": [4, 13], "maintain": 4, "therefor": 4, "strongli": 4, "discourag": 4, "purpos": 4, "studi": 4, "educ": 4, "issu": 4, "scienc": 4, "machin": [4, 5, 9, 13], "special": 4, "origin": 4, "pd": 4, "data_url": 4, "http": [4, 13], "stat": 4, "cmu": 4, "edu": 4, "raw_df": 4, "read_csv": 4, "sep": 4, "skiprow": 4, "22": 4, "header": 4, "hstack": 4, "altern": [4, 13], "california": 4, "func": 4, "fetch_california_h": 4, "am": 4, "fetch_openml": 4, "house_pric": 4, "as_fram": 4, "msg": 4, "categori": 4, "we": [4, 7, 8, 9, 13], "ensembl": [4, 9], "gradientboostingregressor": 4, "feature_extract": 4, "make_pipelin": 4, "pipe": 4, "fit": [4, 9, 13], "x27": 4, "rerun": [4, 9], "cell": [4, 9], "show": [4, 5, 8, 9], "html": [4, 9, 13], "trust": [4, 9], "github": [4, 5, 9, 12], "unabl": [4, 9], "render": [4, 9], "page": [4, 9], "nbviewer": [4, 9], "org": [4, 9, 13], "pipelinepipelin": 4, "dictvectorizerdictvector": 4, "gradientboostingregressorgradientboostingregressor": 4, "confus": [4, 9], "matrix": [4, 9], "metric": [4, 9], "r2_score": 4, "pred": [4, 9], "8474132062469484": 4, "modul": [4, 9, 13], "skl2onnx": [4, 9, 13], "convert_sklearn": [4, 9, 13], "dictionarytyp": 4, "floattensortyp": [4, 9, 13], "int64tensortyp": 4, "sequencetyp": 4, "initial_typ": [4, 9, 13], "onx": [4, 9, 13], "open": [4, 7, 8, 9, 12, 13], "pipeline_vector": 4, "wb": [4, 9, 13], "f": [4, 8, 9, 13], "write": [4, 9, 13], "serializetostr": [4, 8, 9, 13], "inp": 4, "out": 4, "variabl": 4, "could": 4, "do": [4, 6, 9], "pred_onx": [4, 9, 13], "seq": 4, "But": 4, "observ": 4, "ones": 4, "9999999999999123": 4, "explain": 4, "small": 4, "discrep": 4, "374": [4, 10], "plot_convert_pipeline_vector": [4, 10], "test_sigmoid": 5, "example1": [5, 7, 8], "sigmoid": 5, "input_shap": 5, "input_typ": 5, "output_shap": 5, "output_typ": 5, "random": [5, 9], "astyp": [5, 9, 13], "72821426": 5, "6339202": 5, "7272735": 5, "6409311": 5, "61518466": 5, "7185246": 5, "640914": 5, "60131776": 5, "6857518": 5, "70039463": 5, "7135308": 5, "65056884": 5, "58760184": 5, "7135416": 5, "63284004": 5, "7188247": 5, "5470599": 5, "58532": 5, "67812634": 5, "6893187": 5, "6211655": 5, "554035": 5, "55418974": 5, "56652635": 5, "62399405": 5, "55780345": 5, "6938668": 5, "5910147": 5, "59314": 5, "54391265": 5, "7126377": 5, "65041703": 5, "62936115": 5, "69839984": 5, "5651956": 5, "6023196": 5, "6012137": 5, "7164181": 5, "59447944": 5, "7121656": 5, "6137416": 5, "65805656": 5, "6757898": 5, "7231871": 5, "6186665": 5, "662174": 5, "61860013": 5, "6509645": 5, "57368857": 5, "689906": 5, "7140595": 5, "7226651": 5, "6117408": 5, "5281206": 5, "69103116": 5, "7082236": 5, "7197187": 5, "6111821": 5, "6187154": 5, "53502613": 5, "013": [5, 10], "plot_load_and_predict": [5, 10], "relat": 6, "deploi": 6, "product": 6, "keep": 6, "track": 6, "doc_str": 6, "ir_vers": [6, 7, 8], "metadata_prop": 6, "model_vers": 6, "producer_vers": 6, "onnxml": 6, "onnxmltool": [6, 13], "0116": 6, "With": 6, "meta": 6, "3c59201b940f410fa29dc71ea9d5767d": 6, "010": [6, 10], "plot_metadata": [6, 10], "There": [7, 13], "That": 7, "most": 7, "mul_1": [7, 8], "protobuf": 7, "messag": 7, "chenta": 7, "w": 7, "op_typ": 7, "mul": 7, "dim": 7, "float_data": 7, "tensor_typ": 7, "elem_typ": 7, "dim_valu": 7, "opset_import": [7, 8], "7": [7, 8, 9], "net_draw": 7, "befor": [7, 8], "rb": [7, 8], "fid": 7, "read": 7, "parsefromstr": 7, "tool": [7, 13], "getopnodeproduc": 7, "getpydotgraph": 7, "pydot_graph": 7, "rankdir": 7, "lr": 7, "node_produc": 7, "docstr": 7, "write_dot": 7, "dot": 7, "Then": [7, 9], "imag": 7, "o": 7, "system": 7, "tpng": 7, "displai": 7, "matplotlib": [7, 9], "pyplot": 7, "plt": 7, "imread": 7, "png": 7, "imshow": 7, "axesimag": 7, "0x7f3f51301840": 7, "322": [7, 10], "plot_pipelin": [7, 10], "interpret": 8, "def": [8, 9], "change_ir_vers": 8, "opset": 8, "11": 8, "onnx_model": 8, "onnx_model_str": 8, "9": [8, 9], "16": [8, 9], "25": [8, 9], "36": 8, "sessionopt": 8, "sess_profil": 8, "prof_fil": 8, "onnxruntime_profile__2022": 8, "12": [8, 9], "09_23": 8, "45": [8, 9], "49": 8, "json": 8, "un": 8, "what": [8, 9], "sess_tim": 8, "pprint": [8, 9], "cat": 8, "dur": 8, "65": 8, "model_loading_arrai": 8, "ph": 8, "pid": 8, "2734": 8, "tid": 8, "329": 8, "session_initi": 8, "83": 8, "007": [8, 10], "plot_profil": [8, 10], "load_iri": [9, 13], "linear_model": [9, 13], "logisticregress": [9, 13], "clr": [9, 13], "logisticregressionlogisticregress": 9, "confusion_matrix": 9, "output_label": 9, "label_nam": [9, 13], "13": 9, "perfectli": 9, "ident": 9, "relev": 9, "roc": 9, "curv": 9, "prob_sklearn": 9, "predict_proba": 9, "74792469e": 9, "01": [9, 10], "52074267e": 9, "02": 9, "04082095e": 9, "04372454e": 9, "08": 9, "27727275e": 9, "03": 9, "96722707e": 9, "58622821e": 9, "39558909e": 9, "81826980e": 9, "And": 9, "probabili": 9, "appear": 9, "prob_nam": 9, "prob_rt": 9, "97479248046875": 9, "02520740032196045": 9, "0408190576072229e": 9, "043722346911636e": 9, "0032772724516689777": 9, "9967227578163147": 9, "35862284898757935": 9, "6395589113235474": 9, "0018182684434577823": 9, "timeit": 9, "speed": 9, "inst": 9, "repeat": 9, "20": 9, "global": 9, "raw": 9, "av": 9, "sum": 9, "len": 9, "mi": 9, "ma": 9, "min": 9, "max": 9, "averag": 9, "3g": 9, "8": 9, "19e": 9, "17e": 9, "000104": 9, "77e": 9, "46e": 9, "94e": 9, "7683185000219054e": 9, "webservic": 9, "experi": 9, "oppos": 9, "batch": [9, 13], "loop": 9, "fct": 9, "n": 9, "nrow": 9, "rang": 9, "im": 9, "100": 9, "sess_predict": 9, "00675": 9, "00645": 9, "00818": 9, "00192": 9, "00178": 9, "0025": 9, "0019168183650000968": 9, "sess_predict_proba": 9, "00959": 9, "00917": 9, "0106": 9, "00197": 9, "00189": 9, "00221": 9, "001971747110000308": 9, "better": 9, "save": 9, "randomforestclassifi": 9, "rf": 9, "rf_iri": 9, "sess_predict_proba_rf": 9, "14": 9, "18": 9, "00248": 9, "00229": 9, "00335": 9, "002478402585000481": 9, "tree": 9, "measur": 9, "n_tree": 9, "51": 9, "n_estim": 9, "rf_iris_": 9, "sess_predict_proba_loop": 9, "tsk": 9, "trt": 9, "df": 9, "ax": 9, "plot": 9, "blue": 9, "logi": 9, "green": 9, "set_xlabel": 9, "set_ylabel": 9, "set_titl": 9, "nfor": 9, "forest": 9, "legend": 9, "0958": 9, "0905": 9, "105": 9, "0017": 9, "0016": 9, "00179": 9, "149": 9, "147": 9, "15": 9, "00171": 9, "00159": 9, "0018": 9, "196": 9, "193": 9, "198": 9, "00172": 9, "00162": 9, "00182": 9, "246": 9, "243": 9, "248": 9, "00167": 9, "00193": 9, "318": 9, "313": 9, "323": 9, "00184": 9, "00173": 9, "30": 9, "358": 9, "352": 9, "364": 9, "00185": 9, "00177": 9, "0019": 9, "35": 9, "408": 9, "405": 9, "411": 9, "00196": 9, "00187": 9, "40": 9, "481": 9, "477": 9, "484": 9, "00191": 9, "002": 9, "536": 9, "524": 9, "547": 9, "00207": 9, "50": 9, "565": 9, "562": 9, "571": 9, "00203": 9, "00195": 9, "00217": 9, "0x7f3f3bce87c0": 9, "17": [9, 10], "899": [9, 10], "plot_train_convert_predict": [9, 10], "19": 10, "660": 10, "auto_exampl": 10, "mb": 10, "00": 10, "focus": 12, "score": 12, "engin": 12, "neural": 12, "network": 12, "exchang": 12, "aka": 12, "m": 12, "tutori": 12, "easi": 13, "high": 13, "rather": 13, "servic": 13, "At": 13, "briefli": 13, "ll": 13, "famou": 13, "_logist": 13, "444": 13, "convergencewarn": 13, "lbfg": 13, "converg": 13, "stop": 13, "NO": 13, "iter": 13, "reach": 13, "limit": 13, "increas": 13, "max_it": 13, "scale": 13, "shown": 13, "stabl": 13, "preprocess": 13, "solver": 13, "n_iter_i": 13, "_check_optimize_result": 13, "commonli": 13, "compos": 13}, "objects": {"onnxruntime": [[0, 0, 1, "", "IOBinding"], [0, 0, 1, "", "InferenceSession"], [0, 0, 1, "", "ModelMetadata"], [0, 0, 1, "", "NodeArg"], [0, 0, 1, "", "OrtDevice"], [0, 0, 1, "", "OrtValue"], [0, 0, 1, "", "RunOptions"], [0, 0, 1, "", "SessionOptions"], [0, 0, 1, "", "SparseTensor"]], "onnxruntime.IOBinding": [[0, 1, 1, "", "bind_cpu_input"], [0, 1, 1, "", "bind_input"], [0, 1, 1, "", "bind_ortvalue_input"], [0, 1, 1, "", "bind_ortvalue_output"], [0, 1, 1, "", "bind_output"], [0, 1, 1, "", "copy_outputs_to_cpu"], [0, 1, 1, "", "get_outputs"]], "onnxruntime.InferenceSession": [[0, 1, 1, "", "disable_fallback"], [0, 1, 1, "", "enable_fallback"], [0, 1, 1, "", "end_profiling"], [0, 1, 1, "", "get_inputs"], [0, 1, 1, "", "get_modelmeta"], [0, 1, 1, "", "get_outputs"], [0, 1, 1, "", "get_overridable_initializers"], [0, 1, 1, "", "get_profiling_start_time_ns"], [0, 1, 1, "", "get_provider_options"], [0, 1, 1, "", "get_providers"], [0, 1, 1, "", "get_session_options"], [0, 1, 1, "", "io_binding"], [0, 1, 1, "", "run"], [0, 1, 1, "", "run_with_iobinding"], [0, 1, 1, "", "run_with_ort_values"], [0, 1, 1, "", "run_with_ortvaluevector"], [0, 1, 1, "", "set_providers"]], "onnxruntime.ModelMetadata": [[0, 2, 1, "", "custom_metadata_map"], [0, 2, 1, "", "description"], [0, 2, 1, "", "domain"], [0, 2, 1, "", "graph_description"], [0, 2, 1, "", "graph_name"], [0, 2, 1, "", "producer_name"], [0, 2, 1, "", "version"]], "onnxruntime.NodeArg": [[0, 2, 1, "", "name"], [0, 2, 1, "", "shape"], [0, 2, 1, "", "type"]], "onnxruntime.OrtValue": [[0, 1, 1, "", "as_sparse_tensor"], [0, 1, 1, "", "data_ptr"], [0, 1, 1, "", "data_type"], [0, 1, 1, "", "device_name"], [0, 1, 1, "", "element_type"], [0, 1, 1, "", "has_value"], [0, 1, 1, "", "is_sparse_tensor"], [0, 1, 1, "", "is_tensor"], [0, 1, 1, "", "is_tensor_sequence"], [0, 1, 1, "", "numpy"], [0, 1, 1, "", "ort_value_from_sparse_tensor"], [0, 1, 1, "", "ortvalue_from_numpy"], [0, 1, 1, "", "ortvalue_from_shape_and_type"], [0, 1, 1, "", "shape"], [0, 1, 1, "", "update_inplace"]], "onnxruntime.RunOptions": [[0, 1, 1, "", "add_run_config_entry"], [0, 1, 1, "", "get_run_config_entry"], [0, 2, 1, "", "log_severity_level"], [0, 2, 1, "", "log_verbosity_level"], [0, 2, 1, "", "logid"], [0, 2, 1, "", "only_execute_path_to_fetches"], [0, 2, 1, "", "synchronize_execution_providers"], [0, 2, 1, "", "terminate"]], "onnxruntime.SessionOptions": [[0, 1, 1, "", "add_external_initializers"], [0, 1, 1, "", "add_free_dimension_override_by_denotation"], [0, 1, 1, "", "add_free_dimension_override_by_name"], [0, 1, 1, "", "add_initializer"], [0, 1, 1, "", "add_session_config_entry"], [0, 2, 1, "", "enable_cpu_mem_arena"], [0, 2, 1, "", "enable_mem_pattern"], [0, 2, 1, "", "enable_mem_reuse"], [0, 2, 1, "", "enable_profiling"], [0, 2, 1, "", "execution_mode"], [0, 2, 1, "", "execution_order"], [0, 1, 1, "", "get_session_config_entry"], [0, 2, 1, "", "graph_optimization_level"], [0, 2, 1, "", "inter_op_num_threads"], [0, 2, 1, "", "intra_op_num_threads"], [0, 2, 1, "", "log_severity_level"], [0, 2, 1, "", "log_verbosity_level"], [0, 2, 1, "", "logid"], [0, 2, 1, "", "optimized_model_filepath"], [0, 2, 1, "", "profile_file_prefix"], [0, 1, 1, "", "register_custom_ops_library"], [0, 2, 1, "", "use_deterministic_compute"]], "onnxruntime.SparseTensor": [[0, 1, 1, "", "as_blocksparse_view"], [0, 1, 1, "", "as_coo_view"], [0, 1, 1, "", "as_csrc_view"], [0, 1, 1, "", "data_type"], [0, 1, 1, "", "dense_shape"], [0, 1, 1, "", "device_name"], [0, 1, 1, "", "format"], [0, 1, 1, "", "sparse_coo_from_numpy"], [0, 1, 1, "", "sparse_csr_from_numpy"], [0, 1, 1, "", "to_cuda"], [0, 1, 1, "", "values"]], "onnxruntime.backend": [[0, 3, 1, "", "is_compatible"], [0, 3, 1, "", "prepare"], [0, 3, 1, "", "run"], [0, 3, 1, "", "supports_device"]]}, "objtypes": {"0": "py:class", "1": "py:method", "2": "py:property", "3": "py:function"}, "objnames": {"0": ["py", "class", "Python class"], "1": ["py", "method", "Python method"], "2": ["py", "property", "Python property"], "3": ["py", "function", "Python function"]}, "titleterms": {"api": 0, "overview": 0, "load": [0, 5, 13], "run": [0, 13], "model": [0, 5, 7, 8, 13], "data": 0, "input": 0, "output": 0, "cpu": 0, "devic": 0, "detail": 0, "inferencesess": 0, "option": 0, "runopt": 0, "sessionopt": 0, "ortvalu": 0, "sparsetensor": 0, "iobind": 0, "ortdevic": 0, "intern": 0, "class": 0, "modelmetadata": 0, "nodearg": 0, "backend": [0, 2], "galleri": 1, "exampl": 1, "onnx": [2, 4, 5, 7, 9, 12, 13], "runtim": [2, 4, 5, 9, 12, 13], "common": 3, "error": 3, "onnxruntim": 3, "train": [4, 9, 13], "convert": [4, 9, 13], "predict": [4, 5, 9], "pipelin": [4, 7], "convers": [4, 9], "format": [4, 7, 9, 13], "veri": 5, "simpl": [5, 8], "metadata": 6, "draw": 7, "retriev": 7, "json": 7, "profil": 8, "execut": 8, "logist": 9, "regress": 9, "probabl": 9, "benchmark": 9, "randomforest": 9, "comput": 10, "time": 10, "python": 12, "bind": 12, "tutori": 13, "step": 13, "1": 13, "us": 13, "your": 13, "favorit": 13, "framework": 13, "2": 13, "export": 13, "3": 13}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"API": [[0, "api"]], "API Overview": [[0, "api-overview"]], "Load and run a model": [[0, "load-and-run-a-model"]], "Data inputs and outputs": [[0, "data-inputs-and-outputs"]], "Data on CPU": [[0, "data-on-cpu"]], "Data on device": [[0, "data-on-device"]], "API Details": [[0, "api-details"]], "InferenceSession": [[0, "inferencesession"]], "Options": [[0, "options"]], "RunOptions": [[0, "runoptions"]], "SessionOptions": [[0, "sessionoptions"]], "Data": [[0, "data"]], "OrtValue": [[0, "ortvalue"]], "SparseTensor": [[0, "sparsetensor"]], "Devices": [[0, "devices"]], "IOBinding": [[0, "iobinding"]], "OrtDevice": [[0, "ortdevice"]], "Internal classes": [[0, "internal-classes"]], "ModelMetadata": [[0, "modelmetadata"]], "NodeArg": [[0, "nodearg"]], "Backend": [[0, "backend"]], "Gallery of examples": [[1, "gallery-of-examples"]], "ONNX Runtime Backend for ONNX": [[2, "onnx-runtime-backend-for-onnx"]], "Common errors with onnxruntime": [[3, "common-errors-with-onnxruntime"]], "Train, convert and predict with ONNX Runtime": [[4, "train-convert-and-predict-with-onnx-runtime"], [9, "train-convert-and-predict-with-onnx-runtime"]], "Train a pipeline": [[4, "train-a-pipeline"]], "Conversion to ONNX format": [[4, "conversion-to-onnx-format"], [9, "conversion-to-onnx-format"]], "Load and predict with ONNX Runtime and a very simple model": [[5, "load-and-predict-with-onnx-runtime-and-a-very-simple-model"]], "Metadata": [[6, "metadata"]], "Draw a pipeline": [[7, "draw-a-pipeline"]], "Retrieve a model in JSON format": [[7, "retrieve-a-model-in-json-format"]], "Draw a model with ONNX": [[7, "draw-a-model-with-onnx"]], "Profile the execution of a simple model": [[8, "profile-the-execution-of-a-simple-model"]], "Train a logistic regression": [[9, "train-a-logistic-regression"]], "Probabilities": [[9, "probabilities"]], "Benchmark with RandomForest": [[9, "benchmark-with-randomforest"]], "Computation times": [[10, "computation-times"]], "Python Bindings for ONNX Runtime": [[12, "python-bindings-for-onnx-runtime"]], "Tutorial": [[13, "tutorial"]], "Step 1: Train a model using your favorite framework": [[13, "step-1-train-a-model-using-your-favorite-framework"]], "Step 2: Convert or export the model into ONNX format": [[13, "step-2-convert-or-export-the-model-into-onnx-format"]], "Step 3: Load and run the model using ONNX Runtime": [[13, "step-3-load-and-run-the-model-using-onnx-runtime"]]}, "indexentries": {"iobinding (class in onnxruntime)": [[0, "onnxruntime.IOBinding"]], "inferencesession (class in onnxruntime)": [[0, "onnxruntime.InferenceSession"]], "modelmetadata (class in onnxruntime)": [[0, "onnxruntime.ModelMetadata"]], "nodearg (class in onnxruntime)": [[0, "onnxruntime.NodeArg"]], "ortdevice (class in onnxruntime)": [[0, "onnxruntime.OrtDevice"]], "ortvalue (class in onnxruntime)": [[0, "onnxruntime.OrtValue"]], "runoptions (class in onnxruntime)": [[0, "onnxruntime.RunOptions"]], "sessionoptions (class in onnxruntime)": [[0, "onnxruntime.SessionOptions"]], "sparsetensor (class in onnxruntime)": [[0, "onnxruntime.SparseTensor"]], "add_external_initializers() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_external_initializers"]], "add_free_dimension_override_by_denotation() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_free_dimension_override_by_denotation"]], "add_free_dimension_override_by_name() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_free_dimension_override_by_name"]], "add_initializer() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_initializer"]], "add_run_config_entry() (onnxruntime.runoptions method)": [[0, "onnxruntime.RunOptions.add_run_config_entry"]], "add_session_config_entry() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_session_config_entry"]], "as_blocksparse_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_blocksparse_view"]], "as_coo_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_coo_view"]], "as_csrc_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_csrc_view"]], "as_sparse_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.as_sparse_tensor"]], "bind_cpu_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_cpu_input"]], "bind_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_input"]], "bind_ortvalue_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_ortvalue_input"]], "bind_ortvalue_output() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_ortvalue_output"]], "bind_output() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_output"]], "copy_outputs_to_cpu() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.copy_outputs_to_cpu"]], "custom_metadata_map (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.custom_metadata_map"]], "data_ptr() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.data_ptr"]], "data_type() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.data_type"]], "data_type() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.data_type"]], "dense_shape() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.dense_shape"]], "description (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.description"]], "device_name() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.device_name"]], "device_name() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.device_name"]], "disable_fallback() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.disable_fallback"]], "domain (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.domain"]], "element_type() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.element_type"]], "enable_cpu_mem_arena (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_cpu_mem_arena"]], "enable_fallback() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.enable_fallback"]], "enable_mem_pattern (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_mem_pattern"]], "enable_mem_reuse (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_mem_reuse"]], "enable_profiling (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_profiling"]], "end_profiling() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.end_profiling"]], "execution_mode (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.execution_mode"]], "execution_order (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.execution_order"]], "format() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.format"]], "get_inputs() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_inputs"]], "get_modelmeta() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_modelmeta"]], "get_outputs() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.get_outputs"]], "get_outputs() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_outputs"]], "get_overridable_initializers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_overridable_initializers"]], "get_profiling_start_time_ns() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_profiling_start_time_ns"]], "get_provider_options() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_provider_options"]], "get_providers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_providers"]], "get_run_config_entry() (onnxruntime.runoptions method)": [[0, "onnxruntime.RunOptions.get_run_config_entry"]], "get_session_config_entry() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.get_session_config_entry"]], "get_session_options() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_session_options"]], "graph_description (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.graph_description"]], "graph_name (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.graph_name"]], "graph_optimization_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.graph_optimization_level"]], "has_value() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.has_value"]], "inter_op_num_threads (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.inter_op_num_threads"]], "intra_op_num_threads (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.intra_op_num_threads"]], "io_binding() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.io_binding"]], "is_compatible() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.is_compatible"]], "is_sparse_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_sparse_tensor"]], "is_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_tensor"]], "is_tensor_sequence() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_tensor_sequence"]], "log_severity_level (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.log_severity_level"]], "log_severity_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.log_severity_level"]], "log_verbosity_level (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.log_verbosity_level"]], "log_verbosity_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.log_verbosity_level"]], "logid (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.logid"]], "logid (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.logid"]], "name (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.name"]], "numpy() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.numpy"]], "only_execute_path_to_fetches (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.only_execute_path_to_fetches"]], "optimized_model_filepath (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.optimized_model_filepath"]], "ort_value_from_sparse_tensor() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ort_value_from_sparse_tensor"]], "ortvalue_from_numpy() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ortvalue_from_numpy"]], "ortvalue_from_shape_and_type() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ortvalue_from_shape_and_type"]], "prepare() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.prepare"]], "producer_name (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.producer_name"]], "profile_file_prefix (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.profile_file_prefix"]], "register_custom_ops_library() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.register_custom_ops_library"]], "run() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.run"]], "run() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run"]], "run_with_iobinding() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_iobinding"]], "run_with_ort_values() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_ort_values"]], "run_with_ortvaluevector() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_ortvaluevector"]], "set_providers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.set_providers"]], "shape (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.shape"]], "shape() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.shape"]], "sparse_coo_from_numpy() (onnxruntime.sparsetensor static method)": [[0, "onnxruntime.SparseTensor.sparse_coo_from_numpy"]], "sparse_csr_from_numpy() (onnxruntime.sparsetensor static method)": [[0, "onnxruntime.SparseTensor.sparse_csr_from_numpy"]], "supports_device() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.supports_device"]], "synchronize_execution_providers (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.synchronize_execution_providers"]], "terminate (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.terminate"]], "to_cuda() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.to_cuda"]], "type (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.type"]], "update_inplace() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.update_inplace"]], "use_deterministic_compute (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.use_deterministic_compute"]], "values() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.values"]], "version (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.version"]]}})
\ No newline at end of file
+Search.setIndex({"docnames": ["api_summary", "auto_examples/index", "auto_examples/plot_backend", "auto_examples/plot_common_errors", "auto_examples/plot_convert_pipeline_vectorizer", "auto_examples/plot_load_and_predict", "auto_examples/plot_metadata", "auto_examples/plot_pipeline", "auto_examples/plot_profiling", "auto_examples/plot_train_convert_predict", "auto_examples/sg_execution_times", "examples_md", "index", "tutorial"], "filenames": ["api_summary.rst", "auto_examples/index.rst", "auto_examples/plot_backend.rst", "auto_examples/plot_common_errors.rst", "auto_examples/plot_convert_pipeline_vectorizer.rst", "auto_examples/plot_load_and_predict.rst", "auto_examples/plot_metadata.rst", "auto_examples/plot_pipeline.rst", "auto_examples/plot_profiling.rst", "auto_examples/plot_train_convert_predict.rst", "auto_examples/sg_execution_times.rst", "examples_md.rst", "index.rst", "tutorial.rst"], "titles": ["API", "Gallery of examples", "ONNX Runtime Backend for ONNX", "Common errors with onnxruntime", "Train, convert and predict with ONNX Runtime", "Load and predict with ONNX Runtime and a very simple model", "Metadata", "Draw a pipeline", "Profile the execution of a simple model", "Train, convert and predict with ONNX Runtime", "Computation times", "Gallery of examples", "Python Bindings for ONNX Runtime", "Tutorial"], "terms": {"onnx": [0, 1, 3, 6, 8, 10], "runtim": [0, 1, 6, 8, 10], "infer": 0, "graph": [0, 7], "format": [0, 2, 3, 6, 8], "ort": 0, "memori": 0, "disk": 0, "constrain": 0, "environ": [0, 4, 9], "The": [0, 2, 3, 4, 5, 8, 9, 13], "consum": 0, "produc": [0, 3, 6], "can": [0, 2, 3, 4, 8, 13], "specifi": [0, 13], "access": 0, "wai": [0, 7, 13], "best": 0, "match": 0, "your": [0, 3], "scenario": [0, 4, 9, 13], "i": [0, 2, 3, 4, 5, 6, 7, 9, 12, 13], "main": 0, "It": [0, 3, 5, 6, 13], "us": [0, 2, 3, 4, 6, 7, 9], "an": [0, 3, 4, 5, 7, 9, 13], "well": 0, "applic": [0, 13], "configur": 0, "session": [0, 8], "onnxruntim": [0, 1, 2, 4, 5, 6, 7, 8, 9, 10, 12, 13], "name": [0, 2, 3, 4, 5, 7, 8, 9, 13], "consist": [0, 4, 9], "comput": [0, 2, 4, 5, 8, 9, 13], "oper": [0, 13], "implement": [0, 2], "optim": [0, 13], "kernel": 0, "differ": [0, 7, 9], "hardwar": 0, "target": [0, 4, 9, 13], "orchestr": 0, "execut": [0, 1, 9, 10], "via": 0, "provid": [0, 3, 4, 5, 6, 8, 9, 13], "contain": [0, 6, 8], "set": [0, 4, 9, 13], "specif": [0, 6, 13], "gpu": [0, 2, 13], "iot": 0, "etc": 0, "ar": [0, 8, 9, 13], "paramet": 0, "from": [0, 2, 3, 4, 5, 6, 7, 8, 9, 13], "chosen": 0, "prioriti": 0, "order": 0, "given": 0, "list": [0, 13], "In": [0, 4, 9, 13], "exampl": [0, 2, 3, 4, 5, 6, 7, 8, 9, 12], "below": 0, "cuda": 0, "If": 0, "cudaexecutionprovid": 0, "cpuexecutionprovid": 0, "avail": [0, 5], "found": 0, "here": [0, 2, 3, 4, 5, 6, 7, 8, 9, 13], "sinc": 0, "1": [0, 2, 3, 4, 6, 7, 8, 9], "10": [0, 4, 9], "you": [0, 4, 13], "must": 0, "explicitli": 0, "onli": [0, 3], "time": [0, 2, 3, 4, 5, 6, 7, 8, 9], "allow": 0, "explicit": 0, "follow": [0, 2, 3, 4], "assum": 0, "nvidia": 0, "replac": [0, 3], "suppli": 0, "other": [0, 2, 3, 7, 9, 13], "For": [0, 12], "enabl": [0, 8], "profil": [0, 1, 10], "enable_profil": [0, 8], "true": [0, 4, 8, 9], "sess_opt": 0, "its": [0, 4, 5, 7, 9, 13], "On": [0, 4, 9], "default": 0, "map": [0, 4], "nativ": 0, "python": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "structur": 0, "numpi": [0, 2, 3, 4, 5, 8, 9, 13], "arrai": [0, 2, 3, 5, 8, 9], "dictionari": [0, 4], "x": [0, 2, 3, 4, 5, 7, 8, 9, 13], "ortvalue_from_numpi": 0, "device_nam": 0, "shape": [0, 3, 4, 5, 7, 9], "data_typ": [0, 4, 7, 9, 13], "tensor": [0, 3, 4, 5], "float": [0, 3, 4, 5], "is_tensor": 0, "np": [0, 2, 4], "array_equ": 0, "part": 0, "feed": [0, 3], "result": [0, 8], "y": [0, 4, 5, 7, 9, 13], "By": 0, "alwai": 0, "place": 0, "": [0, 2, 4, 5, 6, 7, 8, 9], "have": 0, "mai": 0, "than": [0, 3, 7, 13], "becaus": [0, 4], "introduc": 0, "copi": 0, "between": [0, 2, 9], "support": [0, 8], "custom": 0, "all": [0, 1, 3], "user": 0, "back": 0, "thi": [0, 2, 3, 4, 5, 7, 8, 9, 13], "call": [0, 4], "To": 0, "featur": 0, "run_with_iobind": 0, "A": 0, "instanc": [0, 6], "onto": 0, "io_bind": 0, "over": 0, "node": [0, 7], "bind_cpu_input": 0, "bind_output": 0, "copy_outputs_to_cpu": 0, "0": [0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 13], "directli": [0, 2], "x_ortvalu": 0, "bind_input": 0, "device_typ": 0, "device_id": 0, "element_typ": 0, "float32": [0, 2, 3, 5, 8, 9, 13], "buffer_ptr": 0, "data_ptr": 0, "both": 0, "also": [0, 2, 5, 9], "y_ortvalu": 0, "ortvalue_from_shape_and_typ": 0, "3": [0, 2, 3, 5, 6, 7, 8, 9], "2": [0, 2, 3, 4, 6, 7, 8, 9], "chang": [0, 13], "actual": [0, 3, 4], "being": 0, "bound": 0, "request": 0, "alloc": 0, "particularli": 0, "dynam": 0, "get_output": [0, 3, 4, 5, 9, 13], "get": [0, 9, 13], "correspond": 0, "thu": 0, "bind": 0, "return": [0, 3, 8, 9], "which": [0, 3, 4, 6, 7, 13], "ha": [0, 4, 9], "ort_output": 0, "addit": 0, "work": 0, "while": 0, "inferenc": 0, "bind_ortvalue_input": 0, "bind_ortvalue_output": 0, "pytorch": 0, "x_tensor": 0, "contigu": 0, "tupl": 0, "y_shape": 0, "need": [0, 8, 9], "y_tensor": 0, "torch": 0, "empti": 0, "dtype": [0, 2, 3, 5, 8], "path_or_byt": 0, "none": [0, 3, 4, 8, 9, 13], "provider_opt": 0, "kwarg": 0, "sourc": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "filenam": [0, 8], "serial": 0, "byte": [0, 3], "string": 0, "sequenc": 0, "decreas": 0, "preced": 0, "valu": [0, 4], "either": [0, 2, 3], "dict": 0, "type": [0, 3, 4, 5, 7], "unless": [0, 4], "so": 0, "add_session_config_entri": 0, "load_model_format": 0, "file": [0, 8, 10], "extens": 0, "when": [0, 6], "ani": [0, 3], "should": 0, "mean": 0, "capabl": 0, "otherwis": 0, "disable_fallback": 0, "disabl": 0, "fallback": 0, "mechan": 0, "enable_fallback": 0, "fail": [0, 3, 4, 9], "due": [0, 3], "failur": 0, "reset": 0, "fall": 0, "end_profil": [0, 8], "end": [0, 4, 9], "store": [0, 7, 8], "get_input": [0, 3, 4, 5, 8, 9, 13], "metadata": [0, 1, 10], "get_modelmeta": [0, 6], "see": [0, 5, 6, 8, 9, 12, 13], "get_overridable_initi": 0, "includ": [0, 4, 7], "initi": [0, 7], "get_profiling_start_time_n": 0, "nanosecond": 0, "start": [0, 3, 4, 9], "compar": [0, 4, 9], "monotonic_n": 0, "after": 0, "some": [0, 8], "platform": 0, "timer": [0, 9], "precis": 0, "window": 0, "maco": 0, "100n": 0, "get_provider_opt": 0, "regist": 0, "get_provid": 0, "get_session_opt": 0, "object": [0, 7, 9], "output_nam": [0, 3, 5], "input_fe": 0, "run_opt": 0, "predict": [0, 1, 2, 3, 8, 10, 13], "input_nam": [0, 3, 5, 8, 9, 13], "input_valu": 0, "everi": [0, 9], "spars": [0, 4], "sess": [0, 3, 4, 5, 6, 8, 9, 13], "run_with_ort_valu": 0, "input_dict_ort_valu": 0, "input_ort_valu": 0, "how": [0, 2, 5, 6, 7, 8, 9], "creat": [0, 4, 13], "run_with_ortvaluevector": 0, "feed_nam": 0, "fetch_nam": 0, "fetch": [0, 4], "fetch_devic": 0, "similar": [0, 4, 9], "run_": 0, "method": 0, "minim": 0, "c": [0, 9], "convers": 0, "overhead": 0, "set_provid": 0, "underli": 0, "re": [0, 3, 5, 8], "self": 0, "capi": [0, 2, 3, 4], "onnxruntime_pybind11_st": [0, 2, 3, 4], "inform": [0, 12], "singl": [0, 3], "add_run_config_entri": 0, "arg0": 0, "str": 0, "arg1": 0, "entri": 0, "pair": 0, "get_run_config_entri": 0, "kei": 0, "properti": 0, "log_severity_level": 0, "log": 0, "sever": [0, 3], "level": [0, 13], "particular": 0, "invoc": 0, "verbos": 0, "info": 0, "warn": [0, 3, 4], "error": [0, 1, 10], "4": [0, 3, 5, 7, 8, 9, 13], "fatal": 0, "log_verbosity_level": 0, "vlog": 0, "debug": 0, "build": 0, "run_log_severity_level": 0, "appli": 0, "logid": 0, "identifi": 0, "gener": [0, 1, 2, 3, 4, 5, 6, 7, 8, 9], "only_execute_path_to_fetch": 0, "synchronize_execution_provid": 0, "synchron": 0, "termin": 0, "current": 0, "individu": 0, "exit": 0, "gracefulli": 0, "statu": [0, 9], "add_external_initi": 0, "add_free_dimension_override_by_denot": 0, "int": [0, 4], "dimens": [0, 2, 3], "size": 0, "each": 0, "denot": 0, "associ": 0, "free": 0, "add_free_dimension_override_by_nam": 0, "within": 0, "add_initi": 0, "enable_cpu_mem_arena": 0, "arena": 0, "pre": 0, "futur": 0, "usag": 0, "fals": [0, 4], "don": 0, "t": [0, 4, 8], "want": 0, "enable_mem_pattern": 0, "pattern": 0, "enable_mem_reus": 0, "reus": 0, "execution_mod": 0, "mode": 0, "sequenti": 0, "execution_ord": 0, "basic": 0, "topolog": 0, "get_session_config_entri": 0, "graph_optimization_level": 0, "inter_op_num_thread": 0, "number": [0, 3, 9], "thread": 0, "parallel": 0, "across": 0, "let": [0, 2, 5, 6, 8, 9], "choos": 0, "intra_op_num_thread": 0, "session_log_severity_level": 0, "logger": 0, "id": 0, "optimized_model_filepath": 0, "path": 0, "save_model_format": 0, "config": 0, "case": [0, 4, 9], "insensit": 0, "profile_file_prefix": 0, "prefix": 0, "append": [0, 9], "register_custom_ops_librari": 0, "share": 0, "librari": 0, "op": 0, "requir": 0, "use_deterministic_comput": 0, "whether": 0, "determinist": 0, "numpy_obj": 0, "non": 0, "construct": 0, "deal": 0, "as_sparse_tensor": 0, "function": [0, 4], "address": 0, "first": [0, 3, 4, 9, 13], "element": 0, "buffer": 0, "where": 0, "resid": 0, "e": [0, 2, 3, 4], "g": 0, "proto": 0, "has_valu": 0, "els": 0, "is_sparse_tensor": 0, "is_tensor_sequ": 0, "valid": 0, "hold": 0, "throw": 0, "accessor": 0, "gain": 0, "refer": [0, 4, 9], "static": 0, "ort_value_from_sparse_tensor": 0, "sparse_tensor": 0, "new": 0, "ownership": 0, "factori": 0, "held": 0, "NOT": 0, "integ": 0, "indic": [0, 2, 3], "update_inplac": 0, "np_arr": 0, "updat": 0, "content": [0, 7], "valuess": 0, "project": [0, 12], "depend": [0, 2, 13], "more": [0, 12, 13], "one": [0, 4, 7, 9, 13], "constructor": 0, "as_blocksparse_view": 0, "coo": 0, "represent": [0, 4, 9], "queri": 0, "blockspars": 0, "did": 0, "would": 0, "block_sparse_indic": 0, "as_coo_view": 0, "coo_indic": 0, "as_csrc_view": 0, "csr": 0, "cr": 0, "dit": 0, "inner_ndic": 0, "inner": 0, "outer_ndic": 0, "outer": 0, "dense_shap": 0, "int64": [0, 3, 4], "dens": 0, "ortsparseformat": 0, "enumer": 0, "sparse_coo_from_numpi": 0, "ort_devic": 0, "argument": 0, "d": [0, 9], "homogen": 0, "zero": 0, "linear": 0, "index": [0, 2, 3], "length": 0, "equal": 0, "coordin": 0, "nnz": 0, "exactli": 0, "twice": 0, "describ": [0, 13], "own": 0, "nummpi": 0, "suppor": 0, "numer": 0, "primit": 0, "them": [0, 4, 9], "storag": 0, "increment": 0, "count": 0, "decrement": 0, "gc": 0, "doe": [0, 3, 8], "those": 0, "sparse_csr_from_numpi": 0, "inner_indic": 0, "outer_indic": 0, "row": [0, 4], "col": 0, "Its": 0, "gced": 0, "to_cuda": 0, "alreadi": 0, "cross": 0, "present": 0, "arr_on_cpu": 0, "param": 0, "pointer": 0, "anoth": 0, "No": 0, "obtain": 0, "c_ort_devic": 0, "expos": 0, "These": 0, "cannot": [0, 3], "instanti": 0, "thei": 0, "defin": [0, 13], "about": [0, 4], "usual": [0, 13], "facilit": 0, "comparison": [0, 9], "custom_metadata_map": [0, 6], "descript": [0, 6], "domain": [0, 6, 7], "graph_descript": 0, "host": 0, "graph_nam": [0, 6], "producer_nam": [0, 6, 7], "version": [0, 6, 7, 8], "definit": [0, 5], "arg": [0, 8], "regular": [0, 4], "perform": [0, 12, 13], "usabl": 0, "verif": 0, "conform": 0, "is_compat": 0, "compat": 0, "unus": 0, "ex": 0, "boolean": 0, "prepar": [0, 2], "readi": 0, "modelproto": [0, 7], "compil": [0, 2], "supports_devic": 0, "check": 0, "test": [0, 4, 7, 9], "suit": 0, "draw": [1, 10], "pipelin": [1, 10, 13], "load": [1, 2, 3, 4, 6, 7, 8, 9, 10], "veri": [1, 4, 8, 10], "simpl": [1, 2, 6, 7, 10], "model": [1, 2, 3, 4, 6, 9, 10, 12], "backend": [1, 10], "train": [1, 3, 6, 10], "convert": [1, 6, 7, 10], "common": [1, 4, 9, 10, 13], "download": [1, 2, 3, 4, 5, 6, 7, 8, 9], "code": [1, 2, 3, 4, 5, 6, 7, 8, 9, 13], "auto_examples_python": 1, "zip": 1, "jupyt": [1, 2, 3, 4, 5, 6, 7, 8, 9], "notebook": [1, 2, 3, 4, 5, 6, 7, 8, 9], "auto_examples_jupyt": 1, "sphinx": [1, 2, 3, 4, 5, 6, 7, 8, 9], "click": [2, 3, 4, 5, 6, 7, 8, 9], "full": [2, 3, 4, 5, 6, 7, 8, 9], "extend": 2, "api": [2, 12], "run": [2, 3, 4, 5, 6, 7, 8, 9], "logist": [2, 3, 6], "regress": [2, 3, 6], "import": [2, 3, 4, 5, 6, 7, 8, 9, 13], "devic": 2, "packag": [2, 4, 7, 9], "wa": [2, 6], "cpu": [2, 13], "dataset": [2, 3, 4, 5, 6, 7, 8, 9, 13], "get_devic": 2, "invalidargu": [2, 3, 4], "get_exampl": [2, 3, 5, 6, 7, 8], "logreg_iri": [2, 3, 6, 9, 13], "rep": 2, "try": [2, 3, 4, 9], "label": [2, 3, 9], "proba": 2, "print": [2, 3, 4, 5, 6, 7, 8, 9, 13], "probabl": [2, 3], "except": [2, 3, 4], "runtimeerror": [2, 3, 4], "onnxruntimeerror": [2, 3, 4], "invalid_argu": [2, 3, 4], "got": [2, 3], "invalid": [2, 3], "input": [2, 3, 4, 5, 7, 9], "float_input": [2, 3, 4, 9, 13], "expect": [2, 3, 4], "pleas": [2, 3, 4, 9, 12], "fix": [2, 3], "without": [2, 13], "framework": [2, 3], "make": 2, "easier": 2, "switch": 2, "multipl": [2, 3], "same": [2, 3, 9], "total": [2, 3, 4, 5, 6, 7, 8, 9, 10], "script": [2, 3, 4, 5, 6, 7, 8, 9], "minut": [2, 3, 4, 5, 6, 7, 8, 9], "019": [2, 10], "second": [2, 3, 4, 5, 6, 7, 8, 9], "plot_backend": [2, 10], "py": [2, 3, 4, 5, 6, 7, 8, 9, 10], "ipynb": [2, 3, 4, 5, 6, 7, 8, 9], "galleri": [2, 3, 4, 5, 6, 7, 8, 9, 12], "look": [3, 4, 7, 9], "situat": 3, "rais": 3, "instead": [3, 4], "step": [3, 4, 9], "favorit": 3, "iri": [3, 9, 13], "take": [3, 4], "vector": [3, 4, 5], "class": 3, "among": 3, "three": 3, "rt": [3, 4, 5, 6, 8, 9, 13], "example2": 3, "inferencesess": [3, 4, 5, 6, 8, 9, 13], "get_available_provid": [3, 4, 5, 6, 8, 9, 13], "bad": 3, "handl": 3, "kind": 3, "5": [3, 5, 7, 8, 9], "6": [3, 7, 8, 9], "float64": 3, "unexpect": [3, 4], "data": [3, 4, 9, 13], "doubl": [3, 4], "output": [3, 4, 5, 7, 9, 13], "misspel": 3, "option": [3, 8, 9], "9505997896194458": 3, "027834143489599228": 3, "021566055715084076": 3, "9974970817565918": 3, "6270167988259345e": 3, "05": [3, 9], "0024466365575790405": 3, "9997311234474182": 3, "787709464906584e": 3, "07": 3, "0002686927327886224": 3, "goe": 3, "necessarili": 3, "r": [3, 8], "rank": 3, "higher": 3, "011": [3, 10], "plot_common_error": [3, 10], "demonstr": [4, 5, 7, 9], "scikit": [4, 6, 9, 13], "learn": [4, 5, 6, 9, 13], "dictvector": 4, "retriev": [4, 5, 9], "boston": 4, "datset": [4, 9], "panda": [4, 9], "sklearn": [4, 6, 9, 13], "load_boston": 4, "model_select": [4, 9, 13], "train_test_split": [4, 9, 13], "x_train": [4, 9, 13], "x_test": [4, 9, 13], "y_train": [4, 9, 13], "y_test": [4, 9, 13], "x_train_dict": 4, "datafram": [4, 9], "to_dict": 4, "x_test_dict": 4, "home": [4, 9], "runner": [4, 9], "local": [4, 9], "lib": [4, 9], "python3": [4, 9], "site": [4, 9, 13], "util": 4, "deprec": 4, "87": 4, "futurewarn": 4, "remov": 4, "hous": 4, "price": 4, "ethic": 4, "problem": 4, "document": [4, 9], "further": 4, "detail": [4, 13], "maintain": 4, "therefor": 4, "strongli": 4, "discourag": 4, "purpos": 4, "studi": 4, "educ": 4, "issu": 4, "scienc": 4, "machin": [4, 5, 9, 13], "special": 4, "origin": 4, "pd": 4, "data_url": 4, "http": [4, 9], "stat": 4, "cmu": 4, "edu": 4, "raw_df": 4, "read_csv": 4, "sep": 4, "skiprow": 4, "22": [4, 9], "header": 4, "hstack": 4, "altern": [4, 9], "california": 4, "func": 4, "fetch_california_h": 4, "am": 4, "fetch_openml": 4, "house_pric": 4, "as_fram": 4, "msg": 4, "categori": 4, "we": [4, 7, 8, 9, 13], "ensembl": [4, 9], "gradientboostingregressor": 4, "feature_extract": 4, "make_pipelin": 4, "pipe": 4, "fit": [4, 9, 13], "x27": 4, "rerun": [4, 9], "cell": [4, 9], "show": [4, 5, 8, 9], "html": [4, 9], "trust": [4, 9], "github": [4, 5, 9, 12], "unabl": [4, 9], "render": [4, 9], "page": [4, 9], "nbviewer": [4, 9], "org": [4, 9], "pipelinepipelin": 4, "dictvectorizerdictvector": 4, "gradientboostingregressorgradientboostingregressor": 4, "confus": [4, 9], "matrix": [4, 9], "metric": [4, 9], "r2_score": 4, "pred": [4, 9], "92310182911155": 4, "modul": [4, 9], "skl2onnx": [4, 9, 13], "convert_sklearn": [4, 9, 13], "dictionarytyp": 4, "floattensortyp": [4, 9, 13], "int64tensortyp": 4, "sequencetyp": 4, "initial_typ": [4, 9, 13], "onx": [4, 9, 13], "open": [4, 7, 8, 9, 12, 13], "pipeline_vector": 4, "wb": [4, 9, 13], "f": [4, 8, 9, 13], "write": [4, 9, 13], "serializetostr": [4, 8, 9, 13], "inp": 4, "out": 4, "variabl": 4, "could": 4, "do": [4, 6, 9], "pred_onx": [4, 9, 13], "seq": 4, "But": 4, "observ": 4, "ones": 4, "9999999999999366": 4, "explain": 4, "small": 4, "discrep": 4, "392": [4, 10], "plot_convert_pipeline_vector": [4, 10], "test_sigmoid": 5, "example1": [5, 7, 8], "sigmoid": 5, "input_shap": 5, "input_typ": 5, "output_shap": 5, "output_typ": 5, "random": [5, 9], "astyp": [5, 9, 13], "6741172": 5, "7219819": 5, "61369073": 5, "7058611": 5, "6851099": 5, "65471834": 5, "59070265": 5, "6932085": 5, "58628637": 5, "68116176": 5, "6053132": 5, "6046966": 5, "5977106": 5, "5027518": 5, "6936471": 5, "584405": 5, "5433203": 5, "71175635": 5, "5528623": 5, "66580206": 5, "54814535": 5, "5123932": 5, "68307173": 5, "72042155": 5, "63475394": 5, "64413285": 5, "70860803": 5, "6923877": 5, "5770614": 5, "53430355": 5, "57739794": 5, "6555867": 5, "6817992": 5, "6585449": 5, "593924": 5, "64254063": 5, "6924439": 5, "7242955": 5, "7274165": 5, "55333275": 5, "6204574": 5, "551248": 5, "54466": 5, "70989406": 5, "5772743": 5, "67696744": 5, "5659738": 5, "6278838": 5, "51225674": 5, "6547737": 5, "6698583": 5, "527287": 5, "7128138": 5, "500769": 5, "6947695": 5, "5108964": 5, "694841": 5, "50497264": 5, "6312783": 5, "7083145": 5, "007": [5, 8, 10], "plot_load_and_predict": [5, 10], "relat": 6, "deploi": 6, "product": 6, "keep": 6, "track": 6, "doc_str": 6, "ir_vers": [6, 7, 8], "metadata_prop": 6, "model_vers": 6, "producer_vers": 6, "onnxml": 6, "onnxmltool": [6, 13], "0116": 6, "With": 6, "meta": 6, "3c59201b940f410fa29dc71ea9d5767d": 6, "004": [6, 10], "plot_metadata": [6, 10], "There": [7, 13], "That": 7, "most": 7, "mul_1": [7, 8], "protobuf": 7, "messag": 7, "chenta": 7, "w": 7, "op_typ": 7, "mul": 7, "dim": 7, "float_data": 7, "tensor_typ": 7, "elem_typ": 7, "dim_valu": 7, "opset_import": [7, 8], "7": [7, 8], "net_draw": 7, "befor": [7, 8], "rb": [7, 8], "fid": 7, "read": 7, "parsefromstr": 7, "tool": [7, 13], "getopnodeproduc": 7, "getpydotgraph": 7, "pydot_graph": 7, "rankdir": 7, "lr": 7, "node_produc": 7, "docstr": 7, "write_dot": 7, "dot": 7, "Then": [7, 9], "imag": 7, "o": 7, "system": 7, "tpng": 7, "displai": 7, "matplotlib": [7, 9], "pyplot": 7, "plt": 7, "imread": 7, "png": 7, "imshow": 7, "axesimag": 7, "0x7f2b5427f280": 7, "290": [7, 10], "plot_pipelin": [7, 10], "interpret": 8, "def": [8, 9], "change_ir_vers": 8, "opset": 8, "11": [8, 9], "onnx_model": 8, "onnx_model_str": 8, "9": [8, 9], "16": 8, "25": [8, 9], "36": 8, "sessionopt": 8, "sess_profil": 8, "prof_fil": 8, "onnxruntime_profile__2023": 8, "01": [8, 9, 10], "20_00": 8, "04": [8, 9], "24": 8, "json": 8, "un": 8, "what": [8, 9], "sess_tim": 8, "pprint": [8, 9], "cat": 8, "dur": 8, "83": 8, "model_loading_arrai": 8, "ph": 8, "pid": 8, "2666": 8, "tid": 8, "335": [8, 9], "session_initi": 8, "103": 8, "plot_profil": [8, 10], "load_iri": [9, 13], "linear_model": [9, 13], "logisticregress": [9, 13], "clr": [9, 13], "_logist": 9, "444": 9, "convergencewarn": 9, "lbfg": 9, "converg": 9, "stop": 9, "NO": 9, "iter": 9, "reach": 9, "limit": 9, "increas": 9, "max_it": 9, "scale": 9, "shown": 9, "stabl": 9, "preprocess": 9, "solver": 9, "n_iter_i": 9, "_check_optimize_result": 9, "logisticregressionlogisticregress": 9, "confusion_matrix": 9, "15": 9, "output_label": 9, "label_nam": [9, 13], "17": 9, "perfectli": 9, "ident": 9, "relev": 9, "roc": 9, "curv": 9, "prob_sklearn": 9, "predict_proba": 9, "51652941e": 9, "02": 9, "51347879e": 9, "34868266e": 9, "19825782e": 9, "8": 9, "96096750e": 9, "19206722e": 9, "35280393e": 9, "31904868e": 9, "36674233e": 9, "And": 9, "probabili": 9, "appear": 9, "prob_nam": 9, "prob_rt": 9, "02516530267894268": 9, "9513478875160217": 9, "02348681539297104": 9, "041982587426900864": 9, "8960967659950256": 9, "06192063167691231": 9, "00013528029376175255": 9, "06319047510623932": 9, "9366742372512817": 9, "timeit": 9, "speed": 9, "inst": 9, "repeat": 9, "20": 9, "global": 9, "raw": 9, "av": 9, "sum": 9, "len": 9, "mi": 9, "ma": 9, "min": 9, "max": 9, "averag": 9, "3g": 9, "2e": 9, "01e": 9, "67e": 9, "26e": 9, "88e": 9, "42e": 9, "260208500009298e": 9, "webservic": 9, "experi": 9, "oppos": 9, "batch": [9, 13], "loop": 9, "fct": 9, "n": 9, "nrow": 9, "rang": 9, "im": 9, "100": 9, "sess_predict": 9, "00474": 9, "00472": 9, "0048": 9, "00124": 9, "00122": 9, "00128": 9, "0012437381899999878": 9, "sess_predict_proba": 9, "00697": 9, "00695": 9, "00706": 9, "0013": 9, "00129": 9, "00132": 9, "0013020304249994296": 9, "better": 9, "save": 9, "randomforestclassifi": 9, "rf": 9, "rf_iri": 9, "sess_predict_proba_rf": 9, "806": 9, "802": 9, "813": 9, "00166": 9, "00163": 9, "00172": 9, "0016625346749998473": 9, "tree": 9, "measur": 9, "n_tree": 9, "51": 9, "n_estim": 9, "rf_iris_": 9, "sess_predict_proba_loop": 9, "tsk": 9, "trt": 9, "df": 9, "ax": 9, "plot": 9, "blue": 9, "logi": 9, "green": 9, "set_xlabel": 9, "set_ylabel": 9, "set_titl": 9, "nfor": 9, "forest": 9, "legend": 9, "0661": 9, "0649": 9, "0702": 9, "00121": 9, "00125": 9, "105": 9, "104": 9, "107": 9, "00123": 9, "142": 9, "00127": 9, "181": 9, "00126": 9, "221": 9, "223": 9, "30": 9, "259": 9, "00133": 9, "35": 9, "301": 9, "298": 9, "305": 9, "00136": 9, "40": 9, "336": 9, "00134": 9, "45": 9, "378": 9, "376": 9, "381": 9, "00135": 9, "00139": 9, "50": 9, "414": 9, "416": 9, "0014": 9, "0x7f2b3cb88ee0": 9, "46": [9, 10], "170": [9, 10], "plot_train_convert_predict": [9, 10], "03": 10, "47": 10, "900": 10, "auto_exampl": 10, "mb": 10, "00": 10, "focus": 12, "score": 12, "engin": 12, "neural": 12, "network": 12, "exchang": 12, "aka": 12, "m": 12, "tutori": 12, "easi": 13, "high": 13, "rather": 13, "servic": 13, "At": 13, "briefli": 13, "ll": 13, "famou": 13, "commonli": 13, "compos": 13}, "objects": {"onnxruntime": [[0, 0, 1, "", "IOBinding"], [0, 0, 1, "", "InferenceSession"], [0, 0, 1, "", "ModelMetadata"], [0, 0, 1, "", "NodeArg"], [0, 0, 1, "", "OrtDevice"], [0, 0, 1, "", "OrtValue"], [0, 0, 1, "", "RunOptions"], [0, 0, 1, "", "SessionOptions"], [0, 0, 1, "", "SparseTensor"]], "onnxruntime.IOBinding": [[0, 1, 1, "", "bind_cpu_input"], [0, 1, 1, "", "bind_input"], [0, 1, 1, "", "bind_ortvalue_input"], [0, 1, 1, "", "bind_ortvalue_output"], [0, 1, 1, "", "bind_output"], [0, 1, 1, "", "copy_outputs_to_cpu"], [0, 1, 1, "", "get_outputs"]], "onnxruntime.InferenceSession": [[0, 1, 1, "", "disable_fallback"], [0, 1, 1, "", "enable_fallback"], [0, 1, 1, "", "end_profiling"], [0, 1, 1, "", "get_inputs"], [0, 1, 1, "", "get_modelmeta"], [0, 1, 1, "", "get_outputs"], [0, 1, 1, "", "get_overridable_initializers"], [0, 1, 1, "", "get_profiling_start_time_ns"], [0, 1, 1, "", "get_provider_options"], [0, 1, 1, "", "get_providers"], [0, 1, 1, "", "get_session_options"], [0, 1, 1, "", "io_binding"], [0, 1, 1, "", "run"], [0, 1, 1, "", "run_with_iobinding"], [0, 1, 1, "", "run_with_ort_values"], [0, 1, 1, "", "run_with_ortvaluevector"], [0, 1, 1, "", "set_providers"]], "onnxruntime.ModelMetadata": [[0, 2, 1, "", "custom_metadata_map"], [0, 2, 1, "", "description"], [0, 2, 1, "", "domain"], [0, 2, 1, "", "graph_description"], [0, 2, 1, "", "graph_name"], [0, 2, 1, "", "producer_name"], [0, 2, 1, "", "version"]], "onnxruntime.NodeArg": [[0, 2, 1, "", "name"], [0, 2, 1, "", "shape"], [0, 2, 1, "", "type"]], "onnxruntime.OrtValue": [[0, 1, 1, "", "as_sparse_tensor"], [0, 1, 1, "", "data_ptr"], [0, 1, 1, "", "data_type"], [0, 1, 1, "", "device_name"], [0, 1, 1, "", "element_type"], [0, 1, 1, "", "has_value"], [0, 1, 1, "", "is_sparse_tensor"], [0, 1, 1, "", "is_tensor"], [0, 1, 1, "", "is_tensor_sequence"], [0, 1, 1, "", "numpy"], [0, 1, 1, "", "ort_value_from_sparse_tensor"], [0, 1, 1, "", "ortvalue_from_numpy"], [0, 1, 1, "", "ortvalue_from_shape_and_type"], [0, 1, 1, "", "shape"], [0, 1, 1, "", "update_inplace"]], "onnxruntime.RunOptions": [[0, 1, 1, "", "add_run_config_entry"], [0, 1, 1, "", "get_run_config_entry"], [0, 2, 1, "", "log_severity_level"], [0, 2, 1, "", "log_verbosity_level"], [0, 2, 1, "", "logid"], [0, 2, 1, "", "only_execute_path_to_fetches"], [0, 2, 1, "", "synchronize_execution_providers"], [0, 2, 1, "", "terminate"]], "onnxruntime.SessionOptions": [[0, 1, 1, "", "add_external_initializers"], [0, 1, 1, "", "add_free_dimension_override_by_denotation"], [0, 1, 1, "", "add_free_dimension_override_by_name"], [0, 1, 1, "", "add_initializer"], [0, 1, 1, "", "add_session_config_entry"], [0, 2, 1, "", "enable_cpu_mem_arena"], [0, 2, 1, "", "enable_mem_pattern"], [0, 2, 1, "", "enable_mem_reuse"], [0, 2, 1, "", "enable_profiling"], [0, 2, 1, "", "execution_mode"], [0, 2, 1, "", "execution_order"], [0, 1, 1, "", "get_session_config_entry"], [0, 2, 1, "", "graph_optimization_level"], [0, 2, 1, "", "inter_op_num_threads"], [0, 2, 1, "", "intra_op_num_threads"], [0, 2, 1, "", "log_severity_level"], [0, 2, 1, "", "log_verbosity_level"], [0, 2, 1, "", "logid"], [0, 2, 1, "", "optimized_model_filepath"], [0, 2, 1, "", "profile_file_prefix"], [0, 1, 1, "", "register_custom_ops_library"], [0, 2, 1, "", "use_deterministic_compute"]], "onnxruntime.SparseTensor": [[0, 1, 1, "", "as_blocksparse_view"], [0, 1, 1, "", "as_coo_view"], [0, 1, 1, "", "as_csrc_view"], [0, 1, 1, "", "data_type"], [0, 1, 1, "", "dense_shape"], [0, 1, 1, "", "device_name"], [0, 1, 1, "", "format"], [0, 1, 1, "", "sparse_coo_from_numpy"], [0, 1, 1, "", "sparse_csr_from_numpy"], [0, 1, 1, "", "to_cuda"], [0, 1, 1, "", "values"]], "onnxruntime.backend": [[0, 3, 1, "", "is_compatible"], [0, 3, 1, "", "prepare"], [0, 3, 1, "", "run"], [0, 3, 1, "", "supports_device"]]}, "objtypes": {"0": "py:class", "1": "py:method", "2": "py:property", "3": "py:function"}, "objnames": {"0": ["py", "class", "Python class"], "1": ["py", "method", "Python method"], "2": ["py", "property", "Python property"], "3": ["py", "function", "Python function"]}, "titleterms": {"api": 0, "overview": 0, "load": [0, 5, 13], "run": [0, 13], "model": [0, 5, 7, 8, 13], "data": 0, "input": 0, "output": 0, "cpu": 0, "devic": 0, "detail": 0, "inferencesess": 0, "option": 0, "runopt": 0, "sessionopt": 0, "ortvalu": 0, "sparsetensor": 0, "iobind": 0, "ortdevic": 0, "intern": 0, "class": 0, "modelmetadata": 0, "nodearg": 0, "backend": [0, 2], "galleri": 1, "exampl": 1, "onnx": [2, 4, 5, 7, 9, 12, 13], "runtim": [2, 4, 5, 9, 12, 13], "common": 3, "error": 3, "onnxruntim": 3, "train": [4, 9, 13], "convert": [4, 9, 13], "predict": [4, 5, 9], "pipelin": [4, 7], "convers": [4, 9], "format": [4, 7, 9, 13], "veri": 5, "simpl": [5, 8], "metadata": 6, "draw": 7, "retriev": 7, "json": 7, "profil": 8, "execut": 8, "logist": 9, "regress": 9, "probabl": 9, "benchmark": 9, "randomforest": 9, "comput": 10, "time": 10, "python": 12, "bind": 12, "tutori": 13, "step": 13, "1": 13, "us": 13, "your": 13, "favorit": 13, "framework": 13, "2": 13, "export": 13, "3": 13}, "envversion": {"sphinx.domains.c": 2, "sphinx.domains.changeset": 1, "sphinx.domains.citation": 1, "sphinx.domains.cpp": 8, "sphinx.domains.index": 1, "sphinx.domains.javascript": 2, "sphinx.domains.math": 2, "sphinx.domains.python": 3, "sphinx.domains.rst": 2, "sphinx.domains.std": 2, "sphinx.ext.intersphinx": 1, "sphinx.ext.viewcode": 1, "sphinx": 57}, "alltitles": {"API": [[0, "api"]], "API Overview": [[0, "api-overview"]], "Load and run a model": [[0, "load-and-run-a-model"]], "Data inputs and outputs": [[0, "data-inputs-and-outputs"]], "Data on CPU": [[0, "data-on-cpu"]], "Data on device": [[0, "data-on-device"]], "API Details": [[0, "api-details"]], "InferenceSession": [[0, "inferencesession"]], "Options": [[0, "options"]], "RunOptions": [[0, "runoptions"]], "SessionOptions": [[0, "sessionoptions"]], "Data": [[0, "data"]], "OrtValue": [[0, "ortvalue"]], "SparseTensor": [[0, "sparsetensor"]], "Devices": [[0, "devices"]], "IOBinding": [[0, "iobinding"]], "OrtDevice": [[0, "ortdevice"]], "Internal classes": [[0, "internal-classes"]], "ModelMetadata": [[0, "modelmetadata"]], "NodeArg": [[0, "nodearg"]], "Backend": [[0, "backend"]], "Gallery of examples": [[1, "gallery-of-examples"]], "ONNX Runtime Backend for ONNX": [[2, "onnx-runtime-backend-for-onnx"]], "Common errors with onnxruntime": [[3, "common-errors-with-onnxruntime"]], "Train, convert and predict with ONNX Runtime": [[4, "train-convert-and-predict-with-onnx-runtime"], [9, "train-convert-and-predict-with-onnx-runtime"]], "Train a pipeline": [[4, "train-a-pipeline"]], "Conversion to ONNX format": [[4, "conversion-to-onnx-format"], [9, "conversion-to-onnx-format"]], "Load and predict with ONNX Runtime and a very simple model": [[5, "load-and-predict-with-onnx-runtime-and-a-very-simple-model"]], "Metadata": [[6, "metadata"]], "Draw a pipeline": [[7, "draw-a-pipeline"]], "Retrieve a model in JSON format": [[7, "retrieve-a-model-in-json-format"]], "Draw a model with ONNX": [[7, "draw-a-model-with-onnx"]], "Profile the execution of a simple model": [[8, "profile-the-execution-of-a-simple-model"]], "Train a logistic regression": [[9, "train-a-logistic-regression"]], "Probabilities": [[9, "probabilities"]], "Benchmark with RandomForest": [[9, "benchmark-with-randomforest"]], "Computation times": [[10, "computation-times"]], "Python Bindings for ONNX Runtime": [[12, "python-bindings-for-onnx-runtime"]], "Tutorial": [[13, "tutorial"]], "Step 1: Train a model using your favorite framework": [[13, "step-1-train-a-model-using-your-favorite-framework"]], "Step 2: Convert or export the model into ONNX format": [[13, "step-2-convert-or-export-the-model-into-onnx-format"]], "Step 3: Load and run the model using ONNX Runtime": [[13, "step-3-load-and-run-the-model-using-onnx-runtime"]]}, "indexentries": {"iobinding (class in onnxruntime)": [[0, "onnxruntime.IOBinding"]], "inferencesession (class in onnxruntime)": [[0, "onnxruntime.InferenceSession"]], "modelmetadata (class in onnxruntime)": [[0, "onnxruntime.ModelMetadata"]], "nodearg (class in onnxruntime)": [[0, "onnxruntime.NodeArg"]], "ortdevice (class in onnxruntime)": [[0, "onnxruntime.OrtDevice"]], "ortvalue (class in onnxruntime)": [[0, "onnxruntime.OrtValue"]], "runoptions (class in onnxruntime)": [[0, "onnxruntime.RunOptions"]], "sessionoptions (class in onnxruntime)": [[0, "onnxruntime.SessionOptions"]], "sparsetensor (class in onnxruntime)": [[0, "onnxruntime.SparseTensor"]], "add_external_initializers() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_external_initializers"]], "add_free_dimension_override_by_denotation() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_free_dimension_override_by_denotation"]], "add_free_dimension_override_by_name() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_free_dimension_override_by_name"]], "add_initializer() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_initializer"]], "add_run_config_entry() (onnxruntime.runoptions method)": [[0, "onnxruntime.RunOptions.add_run_config_entry"]], "add_session_config_entry() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.add_session_config_entry"]], "as_blocksparse_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_blocksparse_view"]], "as_coo_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_coo_view"]], "as_csrc_view() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.as_csrc_view"]], "as_sparse_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.as_sparse_tensor"]], "bind_cpu_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_cpu_input"]], "bind_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_input"]], "bind_ortvalue_input() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_ortvalue_input"]], "bind_ortvalue_output() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_ortvalue_output"]], "bind_output() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.bind_output"]], "copy_outputs_to_cpu() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.copy_outputs_to_cpu"]], "custom_metadata_map (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.custom_metadata_map"]], "data_ptr() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.data_ptr"]], "data_type() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.data_type"]], "data_type() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.data_type"]], "dense_shape() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.dense_shape"]], "description (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.description"]], "device_name() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.device_name"]], "device_name() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.device_name"]], "disable_fallback() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.disable_fallback"]], "domain (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.domain"]], "element_type() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.element_type"]], "enable_cpu_mem_arena (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_cpu_mem_arena"]], "enable_fallback() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.enable_fallback"]], "enable_mem_pattern (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_mem_pattern"]], "enable_mem_reuse (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_mem_reuse"]], "enable_profiling (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.enable_profiling"]], "end_profiling() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.end_profiling"]], "execution_mode (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.execution_mode"]], "execution_order (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.execution_order"]], "format() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.format"]], "get_inputs() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_inputs"]], "get_modelmeta() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_modelmeta"]], "get_outputs() (onnxruntime.iobinding method)": [[0, "onnxruntime.IOBinding.get_outputs"]], "get_outputs() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_outputs"]], "get_overridable_initializers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_overridable_initializers"]], "get_profiling_start_time_ns() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_profiling_start_time_ns"]], "get_provider_options() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_provider_options"]], "get_providers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_providers"]], "get_run_config_entry() (onnxruntime.runoptions method)": [[0, "onnxruntime.RunOptions.get_run_config_entry"]], "get_session_config_entry() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.get_session_config_entry"]], "get_session_options() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.get_session_options"]], "graph_description (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.graph_description"]], "graph_name (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.graph_name"]], "graph_optimization_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.graph_optimization_level"]], "has_value() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.has_value"]], "inter_op_num_threads (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.inter_op_num_threads"]], "intra_op_num_threads (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.intra_op_num_threads"]], "io_binding() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.io_binding"]], "is_compatible() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.is_compatible"]], "is_sparse_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_sparse_tensor"]], "is_tensor() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_tensor"]], "is_tensor_sequence() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.is_tensor_sequence"]], "log_severity_level (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.log_severity_level"]], "log_severity_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.log_severity_level"]], "log_verbosity_level (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.log_verbosity_level"]], "log_verbosity_level (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.log_verbosity_level"]], "logid (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.logid"]], "logid (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.logid"]], "name (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.name"]], "numpy() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.numpy"]], "only_execute_path_to_fetches (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.only_execute_path_to_fetches"]], "optimized_model_filepath (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.optimized_model_filepath"]], "ort_value_from_sparse_tensor() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ort_value_from_sparse_tensor"]], "ortvalue_from_numpy() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ortvalue_from_numpy"]], "ortvalue_from_shape_and_type() (onnxruntime.ortvalue static method)": [[0, "onnxruntime.OrtValue.ortvalue_from_shape_and_type"]], "prepare() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.prepare"]], "producer_name (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.producer_name"]], "profile_file_prefix (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.profile_file_prefix"]], "register_custom_ops_library() (onnxruntime.sessionoptions method)": [[0, "onnxruntime.SessionOptions.register_custom_ops_library"]], "run() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.run"]], "run() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run"]], "run_with_iobinding() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_iobinding"]], "run_with_ort_values() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_ort_values"]], "run_with_ortvaluevector() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.run_with_ortvaluevector"]], "set_providers() (onnxruntime.inferencesession method)": [[0, "onnxruntime.InferenceSession.set_providers"]], "shape (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.shape"]], "shape() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.shape"]], "sparse_coo_from_numpy() (onnxruntime.sparsetensor static method)": [[0, "onnxruntime.SparseTensor.sparse_coo_from_numpy"]], "sparse_csr_from_numpy() (onnxruntime.sparsetensor static method)": [[0, "onnxruntime.SparseTensor.sparse_csr_from_numpy"]], "supports_device() (in module onnxruntime.backend)": [[0, "onnxruntime.backend.supports_device"]], "synchronize_execution_providers (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.synchronize_execution_providers"]], "terminate (onnxruntime.runoptions property)": [[0, "onnxruntime.RunOptions.terminate"]], "to_cuda() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.to_cuda"]], "type (onnxruntime.nodearg property)": [[0, "onnxruntime.NodeArg.type"]], "update_inplace() (onnxruntime.ortvalue method)": [[0, "onnxruntime.OrtValue.update_inplace"]], "use_deterministic_compute (onnxruntime.sessionoptions property)": [[0, "onnxruntime.SessionOptions.use_deterministic_compute"]], "values() (onnxruntime.sparsetensor method)": [[0, "onnxruntime.SparseTensor.values"]], "version (onnxruntime.modelmetadata property)": [[0, "onnxruntime.ModelMetadata.version"]]}})
\ No newline at end of file
diff --git a/docs/api/python/sources/auto_examples/plot_backend.rst.txt b/docs/api/python/sources/auto_examples/plot_backend.rst.txt
index 10955fa723..ccf9801808 100644
--- a/docs/api/python/sources/auto_examples/plot_backend.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_backend.rst.txt
@@ -129,7 +129,7 @@ with the same API.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 0.021 seconds)
+ **Total running time of the script:** ( 0 minutes 0.019 seconds)
.. _sphx_glr_download_auto_examples_plot_backend.py:
diff --git a/docs/api/python/sources/auto_examples/plot_common_errors.rst.txt b/docs/api/python/sources/auto_examples/plot_common_errors.rst.txt
index 282ca4799a..999f8e2405 100644
--- a/docs/api/python/sources/auto_examples/plot_common_errors.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_common_errors.rst.txt
@@ -291,7 +291,7 @@ is higher than expects but produces a warning.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 0.014 seconds)
+ **Total running time of the script:** ( 0 minutes 0.011 seconds)
.. _sphx_glr_download_auto_examples_plot_common_errors.py:
diff --git a/docs/api/python/sources/auto_examples/plot_convert_pipeline_vectorizer.rst.txt b/docs/api/python/sources/auto_examples/plot_convert_pipeline_vectorizer.rst.txt
index 6074f22816..7049d00c84 100644
--- a/docs/api/python/sources/auto_examples/plot_convert_pipeline_vectorizer.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_convert_pipeline_vectorizer.rst.txt
@@ -151,7 +151,7 @@ and we show the confusion matrix.
.. code-block:: none
- 0.8474132062469484
+ 0.92310182911155
@@ -284,7 +284,7 @@ We compare them to the model's ones.
.. code-block:: none
- 0.9999999999999123
+ 0.9999999999999366
@@ -297,7 +297,7 @@ that explains the small discrepencies.
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 1.374 seconds)
+ **Total running time of the script:** ( 0 minutes 1.392 seconds)
.. _sphx_glr_download_auto_examples_plot_convert_pipeline_vectorizer.py:
diff --git a/docs/api/python/sources/auto_examples/plot_load_and_predict.rst.txt b/docs/api/python/sources/auto_examples/plot_load_and_predict.rst.txt
index 90e47fd068..b26dfa2905 100644
--- a/docs/api/python/sources/auto_examples/plot_load_and_predict.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_load_and_predict.rst.txt
@@ -149,20 +149,20 @@ Let's compute its outputs (or predictions if it is a machine learned model).
.. code-block:: none
- [array([[[0.72821426, 0.6339202 , 0.7272735 , 0.6409311 , 0.61518466],
- [0.7185246 , 0.640914 , 0.60131776, 0.6857518 , 0.70039463],
- [0.7135308 , 0.65056884, 0.58760184, 0.7135416 , 0.63284004],
- [0.7188247 , 0.5470599 , 0.58532 , 0.67812634, 0.6893187 ]],
+ [array([[[0.6741172 , 0.7219819 , 0.61369073, 0.7058611 , 0.6851099 ],
+ [0.65471834, 0.59070265, 0.6932085 , 0.58628637, 0.68116176],
+ [0.6053132 , 0.6046966 , 0.5977106 , 0.5027518 , 0.6936471 ],
+ [0.584405 , 0.5433203 , 0.71175635, 0.5528623 , 0.66580206]],
- [[0.6211655 , 0.554035 , 0.55418974, 0.56652635, 0.62399405],
- [0.55780345, 0.6938668 , 0.5910147 , 0.59314 , 0.54391265],
- [0.7126377 , 0.65041703, 0.62936115, 0.69839984, 0.5651956 ],
- [0.6023196 , 0.6012137 , 0.7164181 , 0.59447944, 0.7121656 ]],
+ [[0.54814535, 0.5123932 , 0.68307173, 0.72042155, 0.63475394],
+ [0.64413285, 0.70860803, 0.6923877 , 0.5770614 , 0.53430355],
+ [0.57739794, 0.6555867 , 0.6817992 , 0.6585449 , 0.593924 ],
+ [0.64254063, 0.6924439 , 0.7242955 , 0.7274165 , 0.55333275]],
- [[0.6137416 , 0.65805656, 0.6757898 , 0.7231871 , 0.6186665 ],
- [0.662174 , 0.61860013, 0.6509645 , 0.57368857, 0.689906 ],
- [0.7140595 , 0.7226651 , 0.6117408 , 0.5281206 , 0.69103116],
- [0.7082236 , 0.7197187 , 0.6111821 , 0.6187154 , 0.53502613]]],
+ [[0.6204574 , 0.551248 , 0.54466 , 0.70989406, 0.5772743 ],
+ [0.67696744, 0.5659738 , 0.6278838 , 0.51225674, 0.6547737 ],
+ [0.6698583 , 0.527287 , 0.7128138 , 0.500769 , 0.6947695 ],
+ [0.5108964 , 0.694841 , 0.50497264, 0.6312783 , 0.7083145 ]]],
dtype=float32)]
@@ -171,7 +171,7 @@ Let's compute its outputs (or predictions if it is a machine learned model).
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 0.013 seconds)
+ **Total running time of the script:** ( 0 minutes 0.007 seconds)
.. _sphx_glr_download_auto_examples_plot_load_and_predict.py:
diff --git a/docs/api/python/sources/auto_examples/plot_metadata.rst.txt b/docs/api/python/sources/auto_examples/plot_metadata.rst.txt
index 636ea6e7ab..e2fb1a4a55 100644
--- a/docs/api/python/sources/auto_examples/plot_metadata.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_metadata.rst.txt
@@ -110,7 +110,7 @@ With *ONNX Runtime*:
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 0.010 seconds)
+ **Total running time of the script:** ( 0 minutes 0.004 seconds)
.. _sphx_glr_download_auto_examples_plot_metadata.py:
diff --git a/docs/api/python/sources/auto_examples/plot_pipeline.rst.txt b/docs/api/python/sources/auto_examples/plot_pipeline.rst.txt
index bfc58f2e27..8d7344c616 100644
--- a/docs/api/python/sources/auto_examples/plot_pipeline.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_pipeline.rst.txt
@@ -226,14 +226,14 @@ Which we display...
.. code-block:: none
-
+
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 0 minutes 0.322 seconds)
+ **Total running time of the script:** ( 0 minutes 0.290 seconds)
.. _sphx_glr_download_auto_examples_plot_pipeline.py:
diff --git a/docs/api/python/sources/auto_examples/plot_profiling.rst.txt b/docs/api/python/sources/auto_examples/plot_profiling.rst.txt
index 5917127b49..be6941580a 100644
--- a/docs/api/python/sources/auto_examples/plot_profiling.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_profiling.rst.txt
@@ -117,7 +117,7 @@ before running the predictions.
.. code-block:: none
- onnxruntime_profile__2022-12-09_23-45-49.json
+ onnxruntime_profile__2023-01-20_00-04-24.json
@@ -148,20 +148,20 @@ Let's see what it contains.
[{'args': {},
'cat': 'Session',
- 'dur': 65,
+ 'dur': 83,
'name': 'model_loading_array',
'ph': 'X',
- 'pid': 2734,
- 'tid': 2734,
- 'ts': 1},
+ 'pid': 2666,
+ 'tid': 2666,
+ 'ts': 2},
{'args': {},
'cat': 'Session',
- 'dur': 329,
+ 'dur': 335,
'name': 'session_initialization',
'ph': 'X',
- 'pid': 2734,
- 'tid': 2734,
- 'ts': 83}]
+ 'pid': 2666,
+ 'tid': 2666,
+ 'ts': 103}]
diff --git a/docs/api/python/sources/auto_examples/plot_train_convert_predict.rst.txt b/docs/api/python/sources/auto_examples/plot_train_convert_predict.rst.txt
index 5d7364ebf0..20961a55a2 100644
--- a/docs/api/python/sources/auto_examples/plot_train_convert_predict.rst.txt
+++ b/docs/api/python/sources/auto_examples/plot_train_convert_predict.rst.txt
@@ -74,6 +74,19 @@ Then we fit a model.
+.. rst-class:: sphx-glr-script-out
+
+ .. code-block:: none
+
+ /home/runner/.local/lib/python3.10/site-packages/sklearn/linear_model/_logistic.py:444: ConvergenceWarning: lbfgs failed to converge (status=1):
+ STOP: TOTAL NO. of ITERATIONS REACHED LIMIT.
+
+ Increase the number of iterations (max_iter) or scale the data as shown in:
+ https://scikit-learn.org/stable/modules/preprocessing.html
+ Please also refer to the documentation for alternative solver options:
+ https://scikit-learn.org/stable/modules/linear_model.html#logistic-regression
+ n_iter_i = _check_optimize_result(
+
.. raw:: html
@@ -105,9 +118,9 @@ and we show the confusion matrix.
.. code-block:: none
- [[ 9 0 0]
- [ 0 12 0]
- [ 0 1 16]]
+ [[11 0 0]
+ [ 0 15 0]
+ [ 0 2 10]]
@@ -197,9 +210,9 @@ We compute the predictions.
.. code-block:: none
- [[ 9 0 0]
- [ 0 13 0]
- [ 0 0 16]]
+ [[11 0 0]
+ [ 0 17 0]
+ [ 0 0 10]]
@@ -232,9 +245,9 @@ scikit-learn.
.. code-block:: none
- [[9.74792469e-01 2.52074267e-02 1.04082095e-07]
- [2.04372454e-08 3.27727275e-03 9.96722707e-01]
- [3.58622821e-01 6.39558909e-01 1.81826980e-03]]
+ [[2.51652941e-02 9.51347879e-01 2.34868266e-02]
+ [4.19825782e-02 8.96096750e-01 6.19206722e-02]
+ [1.35280393e-04 6.31904868e-02 9.36674233e-01]]
@@ -264,9 +277,9 @@ The probabilies appear to be
.. code-block:: none
- [{0: 0.97479248046875, 1: 0.02520740032196045, 2: 1.0408190576072229e-07},
- {0: 2.043722346911636e-08, 1: 0.0032772724516689777, 2: 0.9967227578163147},
- {0: 0.35862284898757935, 1: 0.6395589113235474, 2: 0.0018182684434577823}]
+ [{0: 0.02516530267894268, 1: 0.9513478875160217, 2: 0.02348681539297104},
+ {0: 0.041982587426900864, 1: 0.8960967659950256, 2: 0.06192063167691231},
+ {0: 0.00013528029376175255, 1: 0.06319047510623932, 2: 0.9366742372512817}]
@@ -306,11 +319,11 @@ Let's benchmark.
.. code-block:: none
Execution time for clr.predict
- Average 8.19e-05 min=7.17e-05 max=0.000104
+ Average 5.2e-05 min=5.01e-05 max=6.67e-05
Execution time for ONNX Runtime
- Average 3.77e-05 min=3.46e-05 max=4.94e-05
+ Average 3.26e-05 min=2.88e-05 max=4.42e-05
- 3.7683185000219054e-05
+ 3.260208500009298e-05
@@ -355,11 +368,11 @@ as opposed to a batch of prediction.
.. code-block:: none
Execution time for clr.predict
- Average 0.00675 min=0.00645 max=0.00818
+ Average 0.00474 min=0.00472 max=0.0048
Execution time for sess_predict
- Average 0.00192 min=0.00178 max=0.0025
+ Average 0.00124 min=0.00122 max=0.00128
- 0.0019168183650000968
+ 0.0012437381899999878
@@ -392,11 +405,11 @@ Let's do the same for the probabilities.
.. code-block:: none
Execution time for predict_proba
- Average 0.00959 min=0.00917 max=0.0106
+ Average 0.00697 min=0.00695 max=0.00706
Execution time for sess_predict_proba
- Average 0.00197 min=0.00189 max=0.00221
+ Average 0.0013 min=0.00129 max=0.00132
- 0.001971747110000308
+ 0.0013020304249994296
@@ -466,11 +479,11 @@ We compare.
.. code-block:: none
Execution time for predict_proba
- Average 1.14 min=1.12 max=1.18
+ Average 0.806 min=0.802 max=0.813
Execution time for sess_predict_proba
- Average 0.00248 min=0.00229 max=0.00335
+ Average 0.00166 min=0.00163 max=0.00172
- 0.002478402585000481
+ 0.0016625346749998473
@@ -525,44 +538,44 @@ Let's see with different number of trees.
.. code-block:: none
5
- Average 0.0958 min=0.0905 max=0.105
- Average 0.0017 min=0.0016 max=0.00179
+ Average 0.0661 min=0.0649 max=0.0702
+ Average 0.00122 min=0.00121 max=0.00125
10
- Average 0.149 min=0.147 max=0.15
- Average 0.00171 min=0.00159 max=0.0018
+ Average 0.105 min=0.104 max=0.107
+ Average 0.00125 min=0.00123 max=0.0013
15
- Average 0.196 min=0.193 max=0.198
- Average 0.00172 min=0.00162 max=0.00182
+ Average 0.142 min=0.142 max=0.142
+ Average 0.00124 min=0.00124 max=0.00127
20
- Average 0.246 min=0.243 max=0.248
- Average 0.00178 min=0.00167 max=0.00193
+ Average 0.181 min=0.181 max=0.181
+ Average 0.00126 min=0.00125 max=0.00129
25
- Average 0.318 min=0.313 max=0.323
- Average 0.00184 min=0.00173 max=0.00193
+ Average 0.221 min=0.22 max=0.223
+ Average 0.00129 min=0.00128 max=0.00132
30
- Average 0.358 min=0.352 max=0.364
- Average 0.00185 min=0.00177 max=0.0019
+ Average 0.259 min=0.259 max=0.259
+ Average 0.00129 min=0.00128 max=0.00133
35
- Average 0.408 min=0.405 max=0.411
- Average 0.00196 min=0.00187 max=0.00221
+ Average 0.301 min=0.298 max=0.305
+ Average 0.00133 min=0.00132 max=0.00136
40
- Average 0.481 min=0.477 max=0.484
- Average 0.00196 min=0.00191 max=0.002
+ Average 0.336 min=0.335 max=0.336
+ Average 0.00134 min=0.00132 max=0.00136
45
- Average 0.536 min=0.524 max=0.547
- Average 0.00197 min=0.00191 max=0.00207
+ Average 0.378 min=0.376 max=0.381
+ Average 0.00135 min=0.00133 max=0.00139
50
- Average 0.565 min=0.562 max=0.571
- Average 0.00203 min=0.00195 max=0.00217
+ Average 0.414 min=0.414 max=0.416
+ Average 0.00136 min=0.00134 max=0.0014
-
+
.. rst-class:: sphx-glr-timing
- **Total running time of the script:** ( 5 minutes 17.899 seconds)
+ **Total running time of the script:** ( 3 minutes 46.170 seconds)
.. _sphx_glr_download_auto_examples_plot_train_convert_predict.py:
diff --git a/docs/api/python/sources/auto_examples/sg_execution_times.rst.txt b/docs/api/python/sources/auto_examples/sg_execution_times.rst.txt
index a76889a90f..a1a8ed94da 100644
--- a/docs/api/python/sources/auto_examples/sg_execution_times.rst.txt
+++ b/docs/api/python/sources/auto_examples/sg_execution_times.rst.txt
@@ -5,22 +5,22 @@
Computation times
=================
-**05:19.660** total execution time for **auto_examples** files:
+**03:47.900** total execution time for **auto_examples** files:
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_train_convert_predict.py` (``plot_train_convert_predict.py``) | 05:17.899 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_train_convert_predict.py` (``plot_train_convert_predict.py``) | 03:46.170 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_convert_pipeline_vectorizer.py` (``plot_convert_pipeline_vectorizer.py``) | 00:01.374 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_convert_pipeline_vectorizer.py` (``plot_convert_pipeline_vectorizer.py``) | 00:01.392 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_pipeline.py` (``plot_pipeline.py``) | 00:00.322 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_pipeline.py` (``plot_pipeline.py``) | 00:00.290 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_backend.py` (``plot_backend.py``) | 00:00.021 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_backend.py` (``plot_backend.py``) | 00:00.019 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_common_errors.py` (``plot_common_errors.py``) | 00:00.014 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_common_errors.py` (``plot_common_errors.py``) | 00:00.011 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_load_and_predict.py` (``plot_load_and_predict.py``) | 00:00.013 | 0.0 MB |
-+-------------------------------------------------------------------------------------------------------------+-----------+--------+
-| :ref:`sphx_glr_auto_examples_plot_metadata.py` (``plot_metadata.py``) | 00:00.010 | 0.0 MB |
+| :ref:`sphx_glr_auto_examples_plot_load_and_predict.py` (``plot_load_and_predict.py``) | 00:00.007 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
| :ref:`sphx_glr_auto_examples_plot_profiling.py` (``plot_profiling.py``) | 00:00.007 | 0.0 MB |
+-------------------------------------------------------------------------------------------------------------+-----------+--------+
+| :ref:`sphx_glr_auto_examples_plot_metadata.py` (``plot_metadata.py``) | 00:00.004 | 0.0 MB |
++-------------------------------------------------------------------------------------------------------------+-----------+--------+
diff --git a/docs/api/python/static/_sphinx_javascript_frameworks_compat.js b/docs/api/python/static/_sphinx_javascript_frameworks_compat.js
deleted file mode 100644
index 8549469dc2..0000000000
--- a/docs/api/python/static/_sphinx_javascript_frameworks_compat.js
+++ /dev/null
@@ -1,134 +0,0 @@
-/*
- * _sphinx_javascript_frameworks_compat.js
- * ~~~~~~~~~~
- *
- * Compatability shim for jQuery and underscores.js.
- *
- * WILL BE REMOVED IN Sphinx 6.0
- * xref RemovedInSphinx60Warning
- *
- */
-
-/**
- * select a different prefix for underscore
- */
-$u = _.noConflict();
-
-
-/**
- * small helper function to urldecode strings
- *
- * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL
- */
-jQuery.urldecode = function(x) {
- if (!x) {
- return x
- }
- return decodeURIComponent(x.replace(/\+/g, ' '));
-};
-
-/**
- * small helper function to urlencode strings
- */
-jQuery.urlencode = encodeURIComponent;
-
-/**
- * This function returns the parsed url parameters of the
- * current request. Multiple values per key are supported,
- * it will always return arrays of strings for the value parts.
- */
-jQuery.getQueryParameters = function(s) {
- if (typeof s === 'undefined')
- s = document.location.search;
- var parts = s.substr(s.indexOf('?') + 1).split('&');
- var result = {};
- for (var i = 0; i < parts.length; i++) {
- var tmp = parts[i].split('=', 2);
- var key = jQuery.urldecode(tmp[0]);
- var value = jQuery.urldecode(tmp[1]);
- if (key in result)
- result[key].push(value);
- else
- result[key] = [value];
- }
- return result;
-};
-
-/**
- * highlight a given string on a jquery object by wrapping it in
- * span elements with the given class name.
- */
-jQuery.fn.highlightText = function(text, className) {
- function highlight(node, addItems) {
- if (node.nodeType === 3) {
- var val = node.nodeValue;
- var pos = val.toLowerCase().indexOf(text);
- if (pos >= 0 &&
- !jQuery(node.parentNode).hasClass(className) &&
- !jQuery(node.parentNode).hasClass("nohighlight")) {
- var span;
- var isInSVG = jQuery(node).closest("body, svg, foreignObject").is("svg");
- if (isInSVG) {
- span = document.createElementNS("http://www.w3.org/2000/svg", "tspan");
- } else {
- span = document.createElement("span");
- span.className = className;
- }
- span.appendChild(document.createTextNode(val.substr(pos, text.length)));
- node.parentNode.insertBefore(span, node.parentNode.insertBefore(
- document.createTextNode(val.substr(pos + text.length)),
- node.nextSibling));
- node.nodeValue = val.substr(0, pos);
- if (isInSVG) {
- var rect = document.createElementNS("http://www.w3.org/2000/svg", "rect");
- var bbox = node.parentElement.getBBox();
- rect.x.baseVal.value = bbox.x;
- rect.y.baseVal.value = bbox.y;
- rect.width.baseVal.value = bbox.width;
- rect.height.baseVal.value = bbox.height;
- rect.setAttribute('class', className);
- addItems.push({
- "parent": node.parentNode,
- "target": rect});
- }
- }
- }
- else if (!jQuery(node).is("button, select, textarea")) {
- jQuery.each(node.childNodes, function() {
- highlight(this, addItems);
- });
- }
- }
- var addItems = [];
- var result = this.each(function() {
- highlight(this, addItems);
- });
- for (var i = 0; i < addItems.length; ++i) {
- jQuery(addItems[i].parent).before(addItems[i].target);
- }
- return result;
-};
-
-/*
- * backward compatibility for jQuery.browser
- * This will be supported until firefox bug is fixed.
- */
-if (!jQuery.browser) {
- jQuery.uaMatch = function(ua) {
- ua = ua.toLowerCase();
-
- var match = /(chrome)[ \/]([\w.]+)/.exec(ua) ||
- /(webkit)[ \/]([\w.]+)/.exec(ua) ||
- /(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua) ||
- /(msie) ([\w.]+)/.exec(ua) ||
- ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua) ||
- [];
-
- return {
- browser: match[ 1 ] || "",
- version: match[ 2 ] || "0"
- };
- };
- jQuery.browser = {};
- jQuery.browser[jQuery.uaMatch(navigator.userAgent).browser] = true;
-}
diff --git a/docs/api/python/static/alabaster.css b/docs/api/python/static/alabaster.css
index 0eddaeb07d..517d0b29cb 100644
--- a/docs/api/python/static/alabaster.css
+++ b/docs/api/python/static/alabaster.css
@@ -419,7 +419,9 @@ table.footnote td {
}
dl {
- margin: 0;
+ margin-left: 0;
+ margin-right: 0;
+ margin-top: 0;
padding: 0;
}
diff --git a/docs/api/python/static/basic.css b/docs/api/python/static/basic.css
index eeb0519a69..7577acb1ad 100644
--- a/docs/api/python/static/basic.css
+++ b/docs/api/python/static/basic.css
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- basic theme.
*
- * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
@@ -236,16 +236,6 @@ div.body p, div.body dd, div.body li, div.body blockquote {
a.headerlink {
visibility: hidden;
}
-a.brackets:before,
-span.brackets > a:before{
- content: "[";
-}
-
-a.brackets:after,
-span.brackets > a:after {
- content: "]";
-}
-
h1:hover > a.headerlink,
h2:hover > a.headerlink,
@@ -334,11 +324,17 @@ aside.sidebar {
p.sidebar-title {
font-weight: bold;
}
+
+nav.contents,
+aside.topic,
div.admonition, div.topic, blockquote {
clear: left;
}
/* -- topics ---------------------------------------------------------------- */
+
+nav.contents,
+aside.topic,
div.topic {
border: 1px solid #ccc;
padding: 7px;
@@ -377,6 +373,8 @@ div.body p.centered {
div.sidebar > :last-child,
aside.sidebar > :last-child,
+nav.contents > :last-child,
+aside.topic > :last-child,
div.topic > :last-child,
div.admonition > :last-child {
margin-bottom: 0;
@@ -384,6 +382,8 @@ div.admonition > :last-child {
div.sidebar::after,
aside.sidebar::after,
+nav.contents::after,
+aside.topic::after,
div.topic::after,
div.admonition::after,
blockquote::after {
@@ -608,19 +608,27 @@ ol.simple p,
ul.simple p {
margin-bottom: 0;
}
-dl.footnote > dt,
-dl.citation > dt {
- float: left;
- margin-right: 0.5em;
-}
-dl.footnote > dd,
-dl.citation > dd {
+aside.footnote > span,
+div.citation > span {
+ float: left;
+}
+aside.footnote > span:last-of-type,
+div.citation > span:last-of-type {
+ padding-right: 0.5em;
+}
+aside.footnote > p {
+ margin-left: 2em;
+}
+div.citation > p {
+ margin-left: 4em;
+}
+aside.footnote > p:last-of-type,
+div.citation > p:last-of-type {
margin-bottom: 0em;
}
-
-dl.footnote > dd:after,
-dl.citation > dd:after {
+aside.footnote > p:last-of-type:after,
+div.citation > p:last-of-type:after {
content: "";
clear: both;
}
@@ -636,10 +644,6 @@ dl.field-list > dt {
padding-left: 0.5em;
padding-right: 5px;
}
-dl.field-list > dt:after {
- content: ":";
-}
-
dl.field-list > dd {
padding-left: 0.5em;
diff --git a/docs/api/python/static/doctools.js b/docs/api/python/static/doctools.js
index 527b876ca6..d06a71d751 100644
--- a/docs/api/python/static/doctools.js
+++ b/docs/api/python/static/doctools.js
@@ -4,7 +4,7 @@
*
* Base JavaScript utilities for all Sphinx HTML documentation.
*
- * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/api/python/static/graphviz.css b/docs/api/python/static/graphviz.css
index 19e7afd385..8d81c02ed9 100644
--- a/docs/api/python/static/graphviz.css
+++ b/docs/api/python/static/graphviz.css
@@ -4,7 +4,7 @@
*
* Sphinx stylesheet -- graphviz extension.
*
- * :copyright: Copyright 2007-2022 by the Sphinx team, see AUTHORS.
+ * :copyright: Copyright 2007-2023 by the Sphinx team, see AUTHORS.
* :license: BSD, see LICENSE for details.
*
*/
diff --git a/docs/api/python/static/jquery-3.6.0.js b/docs/api/python/static/jquery-3.6.0.js
deleted file mode 100644
index fc6c299b73..0000000000
--- a/docs/api/python/static/jquery-3.6.0.js
+++ /dev/null
@@ -1,10881 +0,0 @@
-/*!
- * jQuery JavaScript Library v3.6.0
- * https://jquery.com/
- *
- * Includes Sizzle.js
- * https://sizzlejs.com/
- *
- * Copyright OpenJS Foundation and other contributors
- * Released under the MIT license
- * https://jquery.org/license
- *
- * Date: 2021-03-02T17:08Z
- */
-( function( global, factory ) {
-
- "use strict";
-
- if ( typeof module === "object" && typeof module.exports === "object" ) {
-
- // For CommonJS and CommonJS-like environments where a proper `window`
- // is present, execute the factory and get jQuery.
- // For environments that do not have a `window` with a `document`
- // (such as Node.js), expose a factory as module.exports.
- // This accentuates the need for the creation of a real `window`.
- // e.g. var jQuery = require("jquery")(window);
- // See ticket #14549 for more info.
- module.exports = global.document ?
- factory( global, true ) :
- function( w ) {
- if ( !w.document ) {
- throw new Error( "jQuery requires a window with a document" );
- }
- return factory( w );
- };
- } else {
- factory( global );
- }
-
-// Pass this if window is not defined yet
-} )( typeof window !== "undefined" ? window : this, function( window, noGlobal ) {
-
-// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
-// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
-// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
-// enough that all such attempts are guarded in a try block.
-"use strict";
-
-var arr = [];
-
-var getProto = Object.getPrototypeOf;
-
-var slice = arr.slice;
-
-var flat = arr.flat ? function( array ) {
- return arr.flat.call( array );
-} : function( array ) {
- return arr.concat.apply( [], array );
-};
-
-
-var push = arr.push;
-
-var indexOf = arr.indexOf;
-
-var class2type = {};
-
-var toString = class2type.toString;
-
-var hasOwn = class2type.hasOwnProperty;
-
-var fnToString = hasOwn.toString;
-
-var ObjectFunctionString = fnToString.call( Object );
-
-var support = {};
-
-var isFunction = function isFunction( obj ) {
-
- // Support: Chrome <=57, Firefox <=52
- // In some browsers, typeof returns "function" for HTML