/ohos5.0/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/ |
H A D | neural_network_core.h | 494 …Code OH_NNTensorDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength); 516 …de OH_NNTensorDesc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength); 847 uint32_t *shapeLength); 960 size_t *shapeLength);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/ |
H A D | neural_network_core_test.cpp | 1089 size_t shapeLength = 0; variable 1103 size_t shapeLength = 0; variable 1117 size_t shapeLength = 0; variable 1131 size_t shapeLength = 1; variable 1145 size_t* shapeLength = 0; variable 1159 size_t* shapeLength = 0; variable 1176 delete shapeLength; 1736 uint32_t* shapeLength = nullptr; variable 1875 size_t* shapeLength = nullptr; variable 1890 size_t* shapeLength = nullptr; variable [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_core/ |
H A D | neural_network_core.cpp | 900 if (shapeLength == 0) { in OH_NNTensorDesc_SetShape() 905 return tensorDescImpl->SetShape(shape, shapeLength); in OH_NNTensorDesc_SetShape() 910 size_t *shapeLength) in OH_NNTensorDesc_GetShape() argument 924 if (shapeLength == nullptr) { in OH_NNTensorDesc_GetShape() 930 return tensorDescImpl->GetShape(shape, shapeLength); in OH_NNTensorDesc_GetShape() 1474 uint32_t *shapeLength) in OH_NNExecutor_GetOutputShape() argument 1488 if (shapeLength == nullptr) { in OH_NNExecutor_GetOutputShape() 1494 return executorImpl->GetOutputShape(outputIndex, shape, shapeLength); in OH_NNExecutor_GetOutputShape() 1555 size_t *shapeLength) in OH_NNExecutor_GetInputDimRange() argument 1569 if (shapeLength == nullptr) { in OH_NNExecutor_GetInputDimRange() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-neural-network-runtime-kit/ |
H A D | neural__network__core_8h.md | 48 …_runtime.md#nn_tensordesc) \*tensorDesc, const int32_t \*shape, size_t shapeLength) | 设置[NN_Tensor… 49 …rk_runtime.md#nn_tensordesc) \*tensorDesc, int32_t \*\*shape, size_t \*shapeLength) | 获取[NN_Tensor… 64 …cutor) \*executor, uint32_t outputIndex, int32_t \*\*shape, uint32_t \*shapeLength) | 获取输出张量的维度信息。… 70 …ze_t index, size_t \*\*minInputDims, size_t \*\*maxInputDims, size_t \*shapeLength) | 获取所有输入张量的维度范…
|
H A D | _neural_network_runtime.md | 99 …ensorDesc](#nn_tensordesc) \*tensorDesc, const int32_t \*shape, size_t shapeLength) | 设置[NN_Tensor… 1676 …ecutor *executor, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength ) 1701 | shapeLength | 返回的输入张量的维度数量,与形状一致。 | 1737 …utputShape (OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength ) 1761 | shapeLength | uint32_t类型的指针,返回输出的维数。 | 2955 …e OH_NNTensorDesc_GetShape (const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength ) 2964 如果**tensorDesc**、**shape**或**shapeLength**为空指针,则该接口将返回错误码。 作为输出参数,**\*shape**必须为空指针,否则该接口将返回错误码。 例如… 2976 | shapeLength | 返回的形状列表长度。 | 3070 …ode OH_NNTensorDesc_SetShape (NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength ) 3079 如果**tensorDesc**或**shape**为空指针,或**shapeLength**为0,则该接口将返回错误码。 [all …]
|
H A D | _neural_nework_runtime.md | 99 …ensorDesc](#nn_tensordesc) \*tensorDesc, const int32_t \*shape, size_t shapeLength) | 设置[NN_Tensor… 1676 …ecutor *executor, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength ) 1701 | shapeLength | 返回的输入张量的维度数量,与形状一致。 | 1737 …utputShape (OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength ) 1761 | shapeLength | uint32_t类型的指针,返回输出的维数。 | 2955 …e OH_NNTensorDesc_GetShape (const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength ) 2964 如果**tensorDesc**、**shape**或**shapeLength**为空指针,则该接口将返回错误码。 作为输出参数,**\*shape**必须为空指针,否则该接口将返回错误码。 例如… 2976 | shapeLength | 返回的形状列表长度。 | 3070 …ode OH_NNTensorDesc_SetShape (NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength ) 3079 如果**tensorDesc**或**shape**为空指针,或**shapeLength**为0,则该接口将返回错误码。 [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-neural-network-runtime-kit/ |
H A D | neural__network__core_8h.md | 48 …_runtime.md#nn_tensordesc) \*tensorDesc, const int32_t \*shape, size_t shapeLength) | Sets the dat… 49 …rk_runtime.md#nn_tensordesc) \*tensorDesc, int32_t \*\*shape, size_t \*shapeLength) | Obtains the … 64 …cutor) \*executor, uint32_t outputIndex, int32_t \*\*shape, uint32_t \*shapeLength) | Obtains the … 70 …ze_t index, size_t \*\*minInputDims, size_t \*\*maxInputDims, size_t \*shapeLength) | Obtains the …
|
H A D | _neural_network_runtime.md | 99 …ensorDesc](#nn_tensordesc) \*tensorDesc, const int32_t \*shape, size_t shapeLength) | Sets the dat… 100 …_TensorDesc](#nn_tensordesc) \*tensorDesc, int32_t \*\*shape, size_t \*shapeLength) | Obtains the … 1676 …ecutor *executor, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength ) 1701 | shapeLength | Number of dimensions of the returned input tensor, which is the same as the shape.| 1737 …utputShape (OH_NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength ) 1761 | shapeLength | Pointer to the uint32_t type. The number of output dimensions is returned.| 2955 …e OH_NNTensorDesc_GetShape (const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength ) 2976 | shapeLength | Length of the list of tensor shapes.| 3070 …ode OH_NNTensorDesc_SetShape (NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength ) 3079 If **tensorDesc** or **shape** is a null pointer or **shapeLength** is **0**, an error code is retu… [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/ |
H A D | nn_executor_test.cpp | 207 size_t shapeLength = 0; variable 208 …N_ReturnCode ret = nnExecutor->GetInputDimRange(index, &minInputDims, &maxInputDIms, &shapeLength); 236 size_t shapeLength = 0; variable 237 … OH_NN_ReturnCode ret = nnExecutor->GetInputDimRange(index, nullptr, &maxInputDIms, &shapeLength); 265 size_t shapeLength = 0; variable 266 … OH_NN_ReturnCode ret = nnExecutor->GetInputDimRange(index, &minInputDims, nullptr, &shapeLength); 326 size_t shapeLength = 0; variable 327 …N_ReturnCode ret = nnExecutor->GetInputDimRange(index, &minInputDims, &maxInputDIms, &shapeLength); 366 size_t shapeLength = 0; variable 406 size_t shapeLength = 0; variable [all …]
|
/ohos5.0/foundation/ai/neural_network_runtime/ |
H A D | neural-network-runtime-guidelines.md | 101 …orDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength) | 设置张量描述的形状。 | 102 …Desc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength) | 获取张量描述的形状。 | 128 …NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) | 获取输出张量的维度信息,… 133 …r, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength) |获取所有输入张量的维度范围…
|
/ohos5.0/docs/zh-cn/application-dev/ai/nnrt/ |
H A D | neural-network-runtime-guidelines.md | 101 …orDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength) | 设置张量描述的形状。 | 102 …Desc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength) | 获取张量描述的形状。 | 128 …NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) | 获取输出张量的维度信息,… 133 …r, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength) |获取所有输入张量的维度范围…
|
/ohos5.0/docs/en/application-dev/ai/nnrt/ |
H A D | neural-network-runtime-guidelines.md | 101 …rDesc_SetShape(NN_TensorDesc *tensorDesc, const int32_t *shape, size_t shapeLength) | Sets the sha… 102 …esc_GetShape(const NN_TensorDesc *tensorDesc, int32_t **shape, size_t *shapeLength) | Obtains the … 128 …NNExecutor *executor, uint32_t outputIndex, int32_t **shape, uint32_t *shapeLength) | Obtains the … 133 …r, size_t index, size_t **minInputDims, size_t **maxInputDims, size_t *shapeLength) |Obtains the d…
|