<areahref="struct_ort_1_1detail_1_1_const_value_impl.html"alt="Ort::detail::ConstValueImpl< T >"shape="rect"coords="0,56,234,80"/>
<areahref="struct_ort_1_1detail_1_1_base.html"title="Used internally by the C++ API. C++ wrapper types inherit from this. This is a zero cost abstraction ..."alt="Ort::detail::Base< T >"shape="rect"coords="0,0,234,24"/>
<trclass="inherit_header pub_types_struct_ort_1_1detail_1_1_const_value_impl"><tdcolspan="2"onclick="javascript:toggleInherit('pub_types_struct_ort_1_1detail_1_1_const_value_impl')"><imgsrc="closed.png"alt="-"/> Public Types inherited from <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html">Ort::detail::ConstValueImpl< T ></a></td></tr>
<trclass="memitem:ab80f19abb74be8f5a489ae95eaa13905 inherit pub_types_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memItemLeft"align="right"valign="top">using </td><tdclass="memItemRight"valign="bottom"><aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#ab80f19abb74be8f5a489ae95eaa13905">B</a> = <aclass="el"href="struct_ort_1_1detail_1_1_base.html">Base</a>< T ></td></tr>
<trclass="inherit_header pub_types_struct_ort_1_1detail_1_1_base"><tdcolspan="2"onclick="javascript:toggleInherit('pub_types_struct_ort_1_1detail_1_1_base')"><imgsrc="closed.png"alt="-"/> Public Types inherited from <aclass="el"href="struct_ort_1_1detail_1_1_base.html">Ort::detail::Base< T ></a></td></tr>
<trclass="memdesc:a233d9a9878a69295ad504ea2b22b4d1f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Create an empty <aclass="el"href="struct_ort_1_1_value.html"title="Wrapper around OrtValue.">Value</a> object, must be assigned a valid one to be used. <br/></td></tr>
<trclass="memdesc:a4e744a54c1fe6c477cccbe33b580fe3b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Used for interop with the C API. <br/></td></tr>
<trclass="inherit_header pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_struct_ort_1_1detail_1_1_value_impl')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="struct_ort_1_1detail_1_1_value_impl.html">Ort::detail::ValueImpl< OrtValue ></a></td></tr>
<trclass="memdesc:a28317ae875d9c8b35f0cbed64f776c5a inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a non-const typed pointer to an OrtValue/Tensor contained buffer No type checking is performed, the caller must ensure the type matches the tensor type. <br/></td></tr>
<trclass="memdesc:a8b55de64b5457b5fd0538ec8225a0507 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a non-typed non-const pointer to a tensor contained data. <br/></td></tr>
<trclass="memdesc:ac98717a93e02f4b91ebabaf3c4ab891c inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set all strings at once in a string tensor. <br/></td></tr>
<trclass="memdesc:a0a59534f82ccf9ff55b8a692270e4503 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Set a single string in a string tensor. <br/></td></tr>
<trclass="memdesc:a8b80e2a725f45cdeceb06bcba643e978 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Supplies COO format specific indices and marks the contained sparse tensor as being a COO format tensor. Values are supplied with a CreateSparseTensor() API. The supplied indices are not copied and the user allocated buffers lifespan must eclipse that of the OrtValue. The location of the indices is assumed to be the same as specified by OrtMemoryInfo argument at the creation time. <br/></td></tr>
<trclass="memdesc:adc53699ae881046ccf26527fb0e0d7d2 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Supplies CSR format specific indices and marks the contained sparse tensor as being a CSR format tensor. Values are supplied with a CreateSparseTensor() API. The supplied indices are not copied and the user allocated buffers lifespan must eclipse that of the OrtValue. The location of the indices is assumed to be the same as specified by OrtMemoryInfo argument at the creation time. <br/></td></tr>
<trclass="memdesc:a68ba9e6d44e6a1141c04d1fefaa3b6c6 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Supplies BlockSparse format specific indices and marks the contained sparse tensor as being a BlockSparse format tensor. Values are supplied with a CreateSparseTensor() API. The supplied indices are not copied and the user allocated buffers lifespan must eclipse that of the OrtValue. The location of the indices is assumed to be the same as specified by OrtMemoryInfo argument at the creation time. <br/></td></tr>
<trclass="memdesc:ab30c08c17ce26d0c89e8c7dea62f9a75 inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API will allocate memory using the allocator instance supplied to the CreateSparseTensor() API and copy the values and COO indices into it. If data_mem_info specifies that the data is located at difference device than the allocator, a X-device copy will be performed if possible. <br/></td></tr>
<trclass="memdesc:af67cc830bdf35e40717b06ca70b22ead inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API will allocate memory using the allocator instance supplied to the CreateSparseTensor() API and copy the values and CSR indices into it. If data_mem_info specifies that the data is located at difference device than the allocator, a X-device copy will be performed if possible. <br/></td></tr>
<trclass="memdesc:a7a57d606a608abda7df7b9b23a301a3e inherit pub_methods_struct_ort_1_1detail_1_1_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API will allocate memory using the allocator instance supplied to the CreateSparseTensor() API and copy the values and BlockSparse indices into it. If data_mem_info specifies that the data is located at difference device than the allocator, a X-device copy will be performed if possible. <br/></td></tr>
<trclass="inherit_header pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_struct_ort_1_1detail_1_1_const_value_impl')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html">Ort::detail::ConstValueImpl< T ></a></td></tr>
<trclass="memitem:ab541b268a2aad607ceec3a3da7be8ba0 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplParams"colspan="2">template<typename R ></td></tr>
<trclass="memdesc:ab541b268a2aad607ceec3a3da7be8ba0 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Obtains a pointer to a user defined data for experimental purposes. <br/></td></tr>
<trclass="memdesc:a64c428d4e7a1134f806fcf7b15dc35e7 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if <aclass="el"href="struct_ort_1_1_value.html"title="Wrapper around OrtValue.">Value</a> is a tensor, false for other types like map/sequence/etc. <br/></td></tr>
<trclass="memdesc:ab0589e1f752d7b18a850699be24c8c84 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">< Return true if OrtValue contains data and returns false if the OrtValue is a None <br/></td></tr>
<trclass="memdesc:a2700d2f2a5d9a7922c81419cc9fed664 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This API returns a full length of string data contained within either a tensor or a sparse Tensor. For sparse tensor it returns a full length of stored non-empty strings (values). The API is useful for allocating necessary memory and calling <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a00830aa9d8da4892472df573b3bb1656"title="The API copies all of the UTF-8 encoded string data contained within a tensor or a sparse tensor into...">GetStringTensorContent()</a>. <br/></td></tr>
<trclass="memdesc:a00830aa9d8da4892472df573b3bb1656 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API copies all of the UTF-8 encoded string data contained within a tensor or a sparse tensor into a supplied buffer. Use <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a2700d2f2a5d9a7922c81419cc9fed664"title="This API returns a full length of string data contained within either a tensor or a sparse Tensor....">GetStringTensorDataLength()</a> to find out the length of the buffer to allocate. The user must also allocate offsets buffer with the number of entries equal to that of the contained strings. <br/></td></tr>
<trclass="memitem:aed947feb6d46847d3d6cc0289b377fe6 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplParams"colspan="2">template<typename R ></td></tr>
<trclass="memitem:aed947feb6d46847d3d6cc0289b377fe6 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplItemLeft"align="right"valign="top">const R * </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#aed947feb6d46847d3d6cc0289b377fe6">GetTensorData</a> () const</td></tr>
<trclass="memdesc:aed947feb6d46847d3d6cc0289b377fe6 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a const typed pointer to the tensor contained data. No type checking is performed, the caller must ensure the type matches the tensor type. <br/></td></tr>
<trclass="memdesc:a183c3ebf0e4d24698a782674fb9cced0 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns a non-typed pointer to a tensor contained data. <br/></td></tr>
<trclass="memdesc:a5ff868faaa0f476137844f1fe6053e42 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns type information for data contained in a tensor. For sparse tensors it returns type information for contained non-zero values. It returns dense shape for sparse tensors. <br/></td></tr>
<trclass="memdesc:a9f945911eac6ee23534ce527488a6d5e inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns type information for data contained in a tensor. For sparse tensors it returns type information for contained non-zero values. It returns dense shape for sparse tensors. <br/></td></tr>
<trclass="memdesc:a7342c33f055407202f6b0e4ed209ead0 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This API returns information about the memory allocation used to hold data. <br/></td></tr>
<trclass="memdesc:a11173caf6ac2fdc03fb1c3981fec9b3d inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API copies UTF-8 encoded bytes for the requested string element contained within a tensor or a sparse tensor into a provided buffer. Use <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a21460daeba8be912b5d21ef9aa6dd717"title="The API returns a byte length of UTF-8 encoded string element contained in either a tensor or a spare...">GetStringTensorElementLength()</a> to obtain the length of the buffer to allocate. <br/></td></tr>
<trclass="memdesc:a21460daeba8be912b5d21ef9aa6dd717 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns a byte length of UTF-8 encoded string element contained in either a tensor or a spare tensor values. <br/></td></tr>
<trclass="memdesc:afc36132cb6a308a8beaa5ebaaf1aea58 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns the sparse data format this OrtValue holds in a sparse tensor. If the sparse tensor was not fully constructed, i.e. Use*() or Fill*() API were not used the value returned is ORT_SPARSE_UNDEFINED. <br/></td></tr>
<trclass="memdesc:ab986f32751dc04d125b310fb91b05ab7 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns type and shape information for stored non-zero values of the sparse tensor. Use <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a98ed067e5d11dde40386232f0ed33211"title="The API returns a pointer to an internal buffer of the sparse tensor containing non-zero values....">GetSparseTensorValues()</a> to obtain values buffer pointer. <br/></td></tr>
<trclass="memdesc:a14f83505e75304b45d70c8e41e65a070 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns type and shape information for the specified indices. Each supported indices have their own enum values even if a give format has more than one kind of indices. Use <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a6100cd63b21154bf72baf191c52631cd"title="The API retrieves a pointer to the internal indices buffer. The API merely performs a convenience dat...">GetSparseTensorIndicesData()</a> to obtain pointer to indices buffer. <br/></td></tr>
<trclass="memitem:a6100cd63b21154bf72baf191c52631cd inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplParams"colspan="2">template<typename R ></td></tr>
<trclass="memitem:a6100cd63b21154bf72baf191c52631cd inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplItemLeft"align="right"valign="top">const R * </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a6100cd63b21154bf72baf191c52631cd">GetSparseTensorIndicesData</a> (<aclass="el"href="group___global.html#ga497c04502f658b896b265233fc890787">OrtSparseIndicesFormat</a> indices_format, size_t &num_indices) const</td></tr>
<trclass="memdesc:a6100cd63b21154bf72baf191c52631cd inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API retrieves a pointer to the internal indices buffer. The API merely performs a convenience data type casting on the return type pointer. Make sure you are requesting the right type, use <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a14f83505e75304b45d70c8e41e65a070"title="The API returns type and shape information for the specified indices. Each supported indices have the...">GetSparseTensorIndicesTypeShapeInfo()</a>;. <br/></td></tr>
<trclass="memdesc:a446256778924195baf3e340711a6ef44 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Returns true if the OrtValue contains a sparse tensor. <br/></td></tr>
<trclass="memitem:a98ed067e5d11dde40386232f0ed33211 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplParams"colspan="2">template<typename R ></td></tr>
<trclass="memitem:a98ed067e5d11dde40386232f0ed33211 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="memTemplItemLeft"align="right"valign="top">const R * </td><tdclass="memTemplItemRight"valign="bottom"><aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#a98ed067e5d11dde40386232f0ed33211">GetSparseTensorValues</a> () const</td></tr>
<trclass="memdesc:a98ed067e5d11dde40386232f0ed33211 inherit pub_methods_struct_ort_1_1detail_1_1_const_value_impl"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The API returns a pointer to an internal buffer of the sparse tensor containing non-zero values. The API merely does casting. Make sure you are requesting the right data type by calling <aclass="el"href="struct_ort_1_1detail_1_1_const_value_impl.html#ab986f32751dc04d125b310fb91b05ab7"title="The API returns type and shape information for stored non-zero values of the sparse tensor....">GetSparseTensorValuesTypeAndShapeInfo()</a> first. <br/></td></tr>
<trclass="inherit_header pub_methods_struct_ort_1_1detail_1_1_base"><tdcolspan="2"onclick="javascript:toggleInherit('pub_methods_struct_ort_1_1detail_1_1_base')"><imgsrc="closed.png"alt="-"/> Public Member Functions inherited from <aclass="el"href="struct_ort_1_1detail_1_1_base.html">Ort::detail::Base< T ></a></td></tr>
<trclass="memdesc:a77e438d539c77870789686c70b031802 inherit pub_methods_struct_ort_1_1detail_1_1_base"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Relinquishes ownership of the contained C object pointer The underlying object is not destroyed. <br/></td></tr>
<trclass="memdesc:a3898146b5fc35b838bd48db807dd6c8e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a tensor with a user supplied buffer. Wraps <aclass="el"href="struct_ort_api.html#a2aad3ccd68c66d0b38bdb966467d9324"title="Create a tensor backed by a user supplied buffer.">OrtApi::CreateTensorWithDataAsOrtValue</a>. <br/></td></tr>
<trclass="memdesc:ab19ff01babfb77660ed022c4057046ef"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a tensor with a user supplied buffer. Wraps <aclass="el"href="struct_ort_api.html#a2aad3ccd68c66d0b38bdb966467d9324"title="Create a tensor backed by a user supplied buffer.">OrtApi::CreateTensorWithDataAsOrtValue</a>. <br/></td></tr>
<trclass="memdesc:acacfe668acf9b55ffcd9d375c7f32053"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a tensor using a supplied <aclass="el"href="struct_ort_allocator.html"title="Memory allocation interface.">OrtAllocator</a>. Wraps <aclass="el"href="struct_ort_api.html#afa229d9d92820cc59298ed38d3f4f73f"title="Create a tensor.">OrtApi::CreateTensorAsOrtValue</a>. <br/></td></tr>
<trclass="memdesc:a5d35080239ae47cdbc9e505666dc32ec"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates a tensor using a supplied <aclass="el"href="struct_ort_allocator.html"title="Memory allocation interface.">OrtAllocator</a>. Wraps <aclass="el"href="struct_ort_api.html#afa229d9d92820cc59298ed38d3f4f73f"title="Create a tensor.">OrtApi::CreateTensorAsOrtValue</a>. <br/></td></tr>
<trclass="memdesc:a028498f12d19f373b7479abe8a4a8b75"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="struct_ort_api.html#ac0a58d7d43a98ebe44a2d2f7f8406415"title="Create a map or sequence OrtValue.">OrtApi::CreateValue</a>. <br/></td></tr>
<trclass="memdesc:ad4ca9c86f4996e9490e7e9de960f7afc"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="struct_ort_api.html#ac0a58d7d43a98ebe44a2d2f7f8406415"title="Create a map or sequence OrtValue.">OrtApi::CreateValue</a>. <br/></td></tr>
<trclass="memdesc:aba8bad055b8cdaa1fb57f9aba9e6773e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Wraps <aclass="el"href="struct_ort_api.html#ae12e59921f2c3480bb4bc0fcf7ddd6ec"title="Create an opaque (custom user defined type) OrtValue.">OrtApi::CreateOpaqueValue</a>. <br/></td></tr>
<trclass="memdesc:a07bd3c4da603a8fc23ea6e1f86482f6b"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This is a simple forwarding method to the other overload that helps deducing data type enum value from the type of the buffer. <br/></td></tr>
<trclass="memdesc:a059315bd22476066e30a2d6034bfb9d3"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates an OrtValue instance containing SparseTensor. This constructs a sparse tensor that makes use of user allocated buffers. It does not make copies of the user provided data and does not modify it. The lifespan of user provided buffers should eclipse the life span of the resulting OrtValue. This call constructs an instance that only contain a pointer to non-zero values. To fully populate the sparse tensor call Use<Format>Indices() API below to supply a sparse format specific indices. This API is not suitable for string data. Use <aclass="el"href="struct_ort_1_1_value.html#a07bd3c4da603a8fc23ea6e1f86482f6b"title="This is a simple forwarding method to the other overload that helps deducing data type enum value fro...">CreateSparseTensor()</a> with allocator specified so strings can be properly copied into the allocated buffer. <br/></td></tr>
<trclass="memdesc:a560452c9940a9756089e42d767932e46"><tdclass="mdescLeft"> </td><tdclass="mdescRight">This is a simple forwarding method to the below CreateSparseTensor. This helps to specify data type enum in terms of C++ data type. Use CreateSparseTensor<T><br/></td></tr>
<trclass="memdesc:a15ae05c786194af9ba2e541a91233b2f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Creates an instance of OrtValue containing sparse tensor. The created instance has no data. The data must be supplied by on of the FillSparseTensor<Format>() methods that take both non-zero values and indices. The data will be copied into a buffer that would be allocated using the supplied allocator. Use this API to create OrtValues that contain sparse tensors with all supported data types including strings. <br/></td></tr>
<trclass="inherit_header pro_attribs_struct_ort_1_1detail_1_1_base"><tdcolspan="2"onclick="javascript:toggleInherit('pro_attribs_struct_ort_1_1detail_1_1_base')"><imgsrc="closed.png"alt="-"/> Protected Attributes inherited from <aclass="el"href="struct_ort_1_1detail_1_1_base.html">Ort::detail::Base< T ></a></td></tr>
<p>Create an empty <aclass="el"href="struct_ort_1_1_value.html"title="Wrapper around OrtValue.">Value</a> object, must be assigned a valid one to be used. </p>
<p>Wraps <aclass="el"href="struct_ort_api.html#ac0a58d7d43a98ebe44a2d2f7f8406415"title="Create a map or sequence OrtValue.">OrtApi::CreateValue</a>. </p>
<p>Wraps <aclass="el"href="struct_ort_api.html#ae12e59921f2c3480bb4bc0fcf7ddd6ec"title="Create an opaque (custom user defined type) OrtValue.">OrtApi::CreateOpaqueValue</a>. </p>
<p>Wraps <aclass="el"href="struct_ort_api.html#ac0a58d7d43a98ebe44a2d2f7f8406415"title="Create a map or sequence OrtValue.">OrtApi::CreateValue</a>. </p>
<p>Creates an OrtValue instance containing SparseTensor. This constructs a sparse tensor that makes use of user allocated buffers. It does not make copies of the user provided data and does not modify it. The lifespan of user provided buffers should eclipse the life span of the resulting OrtValue. This call constructs an instance that only contain a pointer to non-zero values. To fully populate the sparse tensor call Use<Format>Indices() API below to supply a sparse format specific indices. This API is not suitable for string data. Use <aclass="el"href="struct_ort_1_1_value.html#a07bd3c4da603a8fc23ea6e1f86482f6b"title="This is a simple forwarding method to the other overload that helps deducing data type enum value fro...">CreateSparseTensor()</a> with allocator specified so strings can be properly copied into the allocated buffer. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">info</td><td>Memory description where the user buffers reside (CPU vs GPU etc)</td></tr>
<tr><tdclass="paramname">p_data</td><td>pointer to the user supplied buffer, use nullptr for fully sparse tensors</td></tr>
<tr><tdclass="paramname">dense_shape</td><td>a would be dense shape of the tensor</td></tr>
<tr><tdclass="paramname">values_shape</td><td>non zero values shape. Use a single 0 shape for fully sparse tensors.</td></tr>
<p>This is a simple forwarding method to the below CreateSparseTensor. This helps to specify data type enum in terms of C++ data type. Use CreateSparseTensor<T></p>
<p>Creates an instance of OrtValue containing sparse tensor. The created instance has no data. The data must be supplied by on of the FillSparseTensor<Format>() methods that take both non-zero values and indices. The data will be copied into a buffer that would be allocated using the supplied allocator. Use this API to create OrtValues that contain sparse tensors with all supported data types including strings. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">allocator</td><td>allocator to use. The allocator lifespan must eclipse that of the resulting OrtValue</td></tr>
<tr><tdclass="paramname">dense_shape</td><td>a would be dense shape of the tensor</td></tr>
<dlclass="section return"><dt>Returns</dt><dd>an instance of <aclass="el"href="struct_ort_1_1_value.html"title="Wrapper around OrtValue.">Ort::Value</a></dd></dl>
<p>Creates a tensor with a user supplied buffer. Wraps <aclass="el"href="struct_ort_api.html#a2aad3ccd68c66d0b38bdb966467d9324"title="Create a tensor backed by a user supplied buffer.">OrtApi::CreateTensorWithDataAsOrtValue</a>. </p>
<p>Creates a tensor with a user supplied buffer. Wraps <aclass="el"href="struct_ort_api.html#a2aad3ccd68c66d0b38bdb966467d9324"title="Create a tensor backed by a user supplied buffer.">OrtApi::CreateTensorWithDataAsOrtValue</a>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">info</td><td>Memory description of where the p_data buffer resides (CPU vs GPU etc). </td></tr>
<tr><tdclass="paramname">p_data</td><td>Pointer to the data buffer. </td></tr>
<tr><tdclass="paramname">p_data_byte_count</td><td>The number of bytes in the data buffer. </td></tr>
<tr><tdclass="paramname">shape</td><td>Pointer to the tensor shape dimensions. </td></tr>
<tr><tdclass="paramname">shape_len</td><td>The number of tensor shape dimensions. </td></tr>
<tr><tdclass="paramname">type</td><td>The data type. </td></tr>
<p>Creates a tensor using a supplied <aclass="el"href="struct_ort_allocator.html"title="Memory allocation interface.">OrtAllocator</a>. Wraps <aclass="el"href="struct_ort_api.html#afa229d9d92820cc59298ed38d3f4f73f"title="Create a tensor.">OrtApi::CreateTensorAsOrtValue</a>. </p>
<p>Creates a tensor using a supplied <aclass="el"href="struct_ort_allocator.html"title="Memory allocation interface.">OrtAllocator</a>. Wraps <aclass="el"href="struct_ort_api.html#afa229d9d92820cc59298ed38d3f4f73f"title="Create a tensor.">OrtApi::CreateTensorAsOrtValue</a>. </p>
<dlclass="params"><dt>Parameters</dt><dd>
<tableclass="params">
<tr><tdclass="paramname">allocator</td><td>The allocator to use. </td></tr>
<tr><tdclass="paramname">shape</td><td>Pointer to the tensor shape dimensions. </td></tr>
<tr><tdclass="paramname">shape_len</td><td>The number of tensor shape dimensions. </td></tr>
<tr><tdclass="paramname">type</td><td>The data type. </td></tr>
<liclass="footer">Generated by <ahref="https://www.doxygen.org/index.html"><imgclass="footer"src="doxygen.svg"width="104"height="31"alt="doxygen"/></a> 1.9.6 </li>