Home
last modified time | relevance | path

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 Dops_builder.cpp75 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 Dinner_model.cpp390 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 Dconcat_builder.cpp113 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 Dunstack_builder.cpp73 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 Dfullconnection_builder.cpp42 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 Dmodel_types.cpp.txt366 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 Dmodel_types.cpp.txt366 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) {