Searched refs:allTensorsSize (Results 1 – 7 of 7) sorted by relevance
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | ops_builder.cpp | 75 size_t allTensorsSize = allTensors.size(); in CheckIOIndex() local 76 …bool isOverTensorSize = std::any_of(inputsIndex.begin(), inputsIndex.end(), [allTensorsSize](uint3… in CheckIOIndex() 77 return index >= allTensorsSize; in CheckIOIndex() 84 …isOverTensorSize = std::any_of(outputsIndex.begin(), outputsIndex.end(), [allTensorsSize](uint32_t… in CheckIOIndex() 85 return index >= allTensorsSize; in CheckIOIndex() 105 size_t allTensorsSize = allTensors.size(); in CheckParamIndex() local 106 …bool isParamsOutOfRange = std::any_of(paramsIndex.begin(), paramsIndex.end(), [allTensorsSize](uin… in CheckParamIndex() 107 return index >= allTensorsSize; in CheckParamIndex()
|
H A D | inner_model.cpp | 390 size_t allTensorsSize = m_allTensors.size(); in ValidateTensorArray() local 392 if (indices.data[i] >= allTensorsSize) { in ValidateTensorArray()
|
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ops/ |
H A D | concat_builder.cpp | 113 size_t allTensorsSize = allTensors.size(); in SetInputsAndOutputs() local 114 …bool isOverTensorSize = std::any_of(inputsIndex.begin(), inputsIndex.end(), [allTensorsSize](uint3… in SetInputsAndOutputs() 115 return index >= allTensorsSize; in SetInputsAndOutputs() 118 LOGE("[Concat] Invalid input index, it is out of range %zu.", allTensorsSize); in SetInputsAndOutputs() 122 …isOverTensorSize = std::any_of(outputsIndex.begin(), outputsIndex.end(), [allTensorsSize](uint32_t… in SetInputsAndOutputs() 123 return index >= allTensorsSize; in SetInputsAndOutputs() 126 LOGE("[Concat] Invalid output index, it is out of range %zu.", allTensorsSize); in SetInputsAndOutputs()
|
H A D | unstack_builder.cpp | 73 size_t allTensorsSize = allTensors.size(); in Build() local 74 …bool isOverTensorSize = std::any_of(inputsIndex.begin(), inputsIndex.end(), [allTensorsSize](uint3… in Build() 75 return index >= allTensorsSize; in Build() 82 …isOverTensorSize = std::any_of(outputsIndex.begin(), outputsIndex.end(), [allTensorsSize](uint32_t… in Build() 83 return index >= allTensorsSize; in Build()
|
H A D | fullconnection_builder.cpp | 42 size_t allTensorsSize = allTensors.size(); in SetFullConnectionInput() local 43 …bool isOverTensorSize = std::any_of(inputsIndex.begin(), inputsIndex.end(), [allTensorsSize](uint3… in SetFullConnectionInput() 44 return index >= allTensorsSize; in SetFullConnectionInput()
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/nnrt_v1_0/cpp_target/nnrt/v1_0/ |
H A D | model_types.cpp.txt | 366 uint32_t allTensorsSize = 0; 367 if (!data.ReadUint32(allTensorsSize)) { 372 …HDI_CHECK_VALUE_RETURN(allTensorsSize, >, HDI_BUFF_MAX_SIZE / sizeof(OHOS::HDI::Nnrt::V1_0::Tensor… 374 dataBlock.allTensors.reserve(allTensorsSize); 375 for (uint32_t i0 = 0; i0 < allTensorsSize; ++i0) {
|
/ohos5.0/foundation/ability/idl_tool/test/hdi_unittest/nnrt_v2_0/cpp_target/nnrt/v2_0/ |
H A D | model_types.cpp.txt | 366 uint32_t allTensorsSize = 0; 367 if (!data.ReadUint32(allTensorsSize)) { 372 …HDI_CHECK_VALUE_RETURN(allTensorsSize, >, HDI_BUFF_MAX_SIZE / sizeof(OHOS::HDI::Nnrt::V2_0::Tensor… 374 dataBlock.allTensors.reserve(allTensorsSize); 375 for (uint32_t i0 = 0; i0 < allTensorsSize; ++i0) {
|