Home
last modified time | relevance | path

Searched refs:inputs_num (Results 1 – 22 of 22) sorted by relevance

/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/Core/Src/
Dmain.c31 size_t inputs_num = inputs.size(); in main() local
32 void *inputs_binbuf[inputs_num]; in main()
33 int inputs_size[inputs_num]; in main()
34 for (size_t i = 0; i < inputs_num; ++i) { in main()
39 for (size_t i = 0; i < inputs_num; ++i) { in main()
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/benchmark/
Dload_input.c70 int ReadInputsFile(char *path, void **buffers, const int *inputs_size, int inputs_num) { in ReadInputsFile() argument
71 char *inputs_path[inputs_num]; in ReadInputsFile()
76 if (i >= inputs_num) { in ReadInputsFile()
77 printf("inputs num is error, need: %d\n", inputs_num); in ReadInputsFile()
85 for (i = 0; i < inputs_num; ++i) { in ReadInputsFile()
Dbenchmark.cc138 size_t inputs_num = inputs.size(); in main() local
139 void *inputs_binbuf[inputs_num]; in main()
140 int inputs_size[inputs_num]; in main()
141 for (size_t i = 0; i < inputs_num; ++i) { in main()
144 int ret = ReadInputsFile(const_cast<char *>(argv[1]), inputs_binbuf, inputs_size, inputs_num); in main()
148 for (size_t i = 0; i < inputs_num; ++i) { in main()
202 for (size_t i = 0; i < inputs_num; ++i) { in main()
Dload_input.h29 int ReadInputsFile(char *path, void **buffers, const int *inputs_size, int inputs_num);
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/
Dload_input.c70 int ReadInputsFile(char *path, void **buffers, const int *inputs_size, int inputs_num) { in ReadInputsFile() argument
71 char *inputs_path[inputs_num]; in ReadInputsFile()
76 if (i >= inputs_num) { in ReadInputsFile()
77 printf("inputs num is error, need: %d\n", inputs_num); in ReadInputsFile()
85 for (i = 0; i < inputs_num; ++i) { in ReadInputsFile()
Dbenchmark.cc138 size_t inputs_num = inputs.size(); in main() local
139 void *inputs_binbuf[inputs_num]; in main()
140 int inputs_size[inputs_num]; in main()
141 for (size_t i = 0; i < inputs_num; ++i) { in main()
144 int ret = ReadInputsFile(const_cast<char *>(argv[1]), inputs_binbuf, inputs_size, inputs_num); in main()
148 for (size_t i = 0; i < inputs_num; ++i) { in main()
202 for (size_t i = 0; i < inputs_num; ++i) { in main()
Dload_input.h29 int ReadInputsFile(char *path, void **buffers, const int *inputs_size, int inputs_num);
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/tbe/tbe_json/
Dtbe_json_utils.cc27 std::vector<size_t> *inputs_num) { in GetInputsRealNum() argument
29 MS_EXCEPTION_IF_NULL(inputs_num); in GetInputsRealNum()
43 (*inputs_num).emplace_back(LongToSize(dyn_input_sizes[dyn_input_index])); in GetInputsRealNum()
47 (*inputs_num).emplace_back(1); in GetInputsRealNum()
Dtbe_json_utils.h111 std::vector<size_t> *inputs_num);
/third_party/mindspore/mindspore/lite/micro/coder/generator/component/
Dtrain_component.cc126 size_t inputs_num = inputs.size(); in CodeTrainImplement() local
167 << " const void *input_ptr[" << inputs_num << "];\n" in CodeTrainImplement()
172 << "_SetInputs(input_ptr, " << inputs_num << ");\n" in CodeTrainImplement()
/third_party/mindspore/mindspore/lite/src/runtime/kernel/arm/base/
Dstack_base.cc112 size_t inputs_num = in_tensors_.size(); in Run() local
113 all_inputs_ = static_cast<void **>(ms_context_->allocator->Malloc(inputs_num * sizeof(void *))); in Run()
118 for (size_t j = 0; j < inputs_num; ++j) { in Run()
/third_party/mindspore/mindspore/ccsrc/frontend/optimizer/ad/
Dkpynative.cc169 FuncGraphPtr BuildFakeBProp(const PrimitivePtr &prim, size_t inputs_num) { in BuildFakeBProp() argument
178 for (size_t i = 0; i < inputs_num; ++i) { in BuildFakeBProp()
897 auto inputs_num = cnode->size() - 1; in BuildBPropCutFuncGraph() local
912 for (size_t i = 0; i < inputs_num; ++i) { in BuildBPropCutFuncGraph()
927 auto inputs_num = cnode->size() - 1; in BuildMakeSequenceBprop() local
928 CacheKey key{prim->name(), inputs_num}; in BuildMakeSequenceBprop()
937 ss << "◀" << prim->ToString() << inputs_num; in BuildMakeSequenceBprop()
939 for (size_t i = 0; i < inputs_num; ++i) { in BuildMakeSequenceBprop()
960 for (size_t i = 0; i < inputs_num; ++i) { in BuildMakeSequenceBprop()
Dkprim.cc664 auto inputs_num = cnode->first->cast<CNodePtr>()->size() - 1; in BpropCut() local
678 for (size_t i = 0; i < inputs_num; ++i) { in BpropCut()
703 auto inputs_num = cnode->first->cast<CNodePtr>()->inputs().size() - 1; in FakeBprop() local
713 if (inputs_num < monad_params_size) { in FakeBprop()
717 inputs_num -= monad_params_size; in FakeBprop()
726 for (size_t i = 0; i < inputs_num; ++i) { in FakeBprop()
/third_party/mindspore/tests/mindspore_test_framework/utils/
Dblock_util.py364 inputs_num = len(inputs)
365 if add_fake_input and inputs_num == 1:
367 inputs_num = 0
368 b = block_generator(block, inputs_num, desc_const=desc_const, const_first=const_first,
/third_party/mindspore/mindspore/ccsrc/fl/server/kernel/
Dparams_info.h50 size_t inputs_num() const;
Doptimizer_kernel_factory.cc33 size_t input_num = params_info.inputs_num(); in Matched()
Daggregation_kernel_factory.cc33 size_t input_num = params_info.inputs_num(); in Matched()
Dparams_info.cc42 size_t ParamsInfo::inputs_num() const { return inputs_name_type_.size(); } in inputs_num() function in mindspore::fl::server::kernel::ParamsInfo
/third_party/mindspore/mindspore/lite/src/runtime/kernel/opencl/kernel/
Dconv2d.cc45 int inputs_num = in_tensors_.size(); in CheckSpecs() local
46 if (inputs_num != INPUT_TENSOR_SIZE_2 && inputs_num != INPUT_TENSOR_SIZE_3) { in CheckSpecs()
47 MS_LOG(WARNING) << "Conv2D only supports 2 or 3 input Tensor but get " << inputs_num; in CheckSpecs()
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/parse/
Ddata_converter.cc135 …size_t inputs_num = py::cast<int64_t>(py::getattr(code_obj, "co_argcount")) - kBpropExcludeParamNu… in ConvertToBpropCut() local
136 for (size_t i = 0; i < inputs_num; ++i) { in ConvertToBpropCut()
/third_party/mindspore/mindspore/lite/tools/converter/parser/onnx/
Donnx_model_parser.cc372 FuncGraphPtr BuildCondGraph(const AnfNodePtr &root_while_node, int inputs_num, const std::string &c… in BuildCondGraph() argument
377 for (int i = 0; i < inputs_num; i++) { in BuildCondGraph()
/third_party/mindspore/mindspore/ccsrc/pipeline/pynative/
Dpynative_execute.cc2481 const size_t inputs_num = py::cast<int64_t>(py::getattr(code_obj, "co_argcount")) - 3; in DoGradForCustomBprop() local
2482 if (inputs_num > args.size()) { in DoGradForCustomBprop()
2483 …MS_EXCEPTION(TypeError) << "Size of bprop func inputs[" << inputs_num << "] is larger than size of… in DoGradForCustomBprop()
2488 for (size_t i = 0; i < inputs_num; i += 1) { in DoGradForCustomBprop()