Home
last modified time | relevance | path

Searched refs:inputName (Results 1 – 25 of 45) sorted by relevance

12

/external/tensorflow/tensorflow/tools/android/inference_interface/java/org/tensorflow/contrib/android/
DTensorFlowInferenceInterface.java301 public void feed(String inputName, boolean[] src, long... dims) { in feed() argument
308 addFeed(inputName, Tensor.create(Boolean.class, dims, ByteBuffer.wrap(b))); in feed()
317 public void feed(String inputName, float[] src, long... dims) { in feed() argument
318 addFeed(inputName, Tensor.create(dims, FloatBuffer.wrap(src))); in feed()
327 public void feed(String inputName, int[] src, long... dims) { in feed() argument
328 addFeed(inputName, Tensor.create(dims, IntBuffer.wrap(src))); in feed()
337 public void feed(String inputName, long[] src, long... dims) { in feed() argument
338 addFeed(inputName, Tensor.create(dims, LongBuffer.wrap(src))); in feed()
347 public void feed(String inputName, double[] src, long... dims) { in feed() argument
348 addFeed(inputName, Tensor.create(dims, DoubleBuffer.wrap(src))); in feed()
[all …]
/external/tensorflow/tensorflow/lite/java/src/main/java/org/tensorflow/lite/
DNativeSignatureRunnerWrapper.java48 public TensorImpl getInputTensor(String inputName) { in getInputTensor() argument
49 return TensorImpl.fromSignatureInput(signatureRunnerHandle, inputName); in getInputTensor()
58 public int getInputIndex(String inputName) { in getInputIndex() argument
59 int inputIndex = nativeGetInputIndex(signatureRunnerHandle, inputName); in getInputIndex()
61 throw new IllegalArgumentException("Input error: input " + inputName + " not found."); in getInputIndex()
76 public boolean resizeInput(String inputName, int[] dims) { in resizeInput() argument
78 return nativeResizeInput(signatureRunnerHandle, errorHandle, inputName, dims); in resizeInput()
110 private static native int nativeGetInputIndex(long signatureRunnerHandle, String inputName); in nativeGetInputIndex() argument
115 long signatureRunnerHandle, long errorHandle, String inputName, int[] dims); in nativeResizeInput() argument
DInterpreter.java293 public Tensor getInputTensorFromSignature(String inputName, String signatureKey) { in getInputTensorFromSignature() argument
304 return wrapper.getInputTensor(inputName, signatureKey); in getInputTensorFromSignature()
DNativeInterpreterWrapper.java390 TensorImpl getInputTensor(String inputName, String signatureKey) { in getInputTensor() argument
391 if (inputName == null) { in getInputTensor()
397 return signatureRunnerWrapper.getInputTensor(inputName); in getInputTensor()
400 int inputIndex = signatureRunnerWrapper.getInputIndex(inputName); in getInputTensor()
/external/armnn/src/backends/tosaCommon/operatorMappings/
DReshapeOperator.cpp13 std::string inputName = std::string("input0_"); in ConvertReshapeToTosaOperator() local
23 inputName = GenerateUniqueName(connectedLayer, 0); in ConvertReshapeToTosaOperator()
34 {inputName}, in ConvertReshapeToTosaOperator()
42 if(inputName.find("input0_") != std::string::npos) in ConvertReshapeToTosaOperator()
47 tensors.push_back(new TosaSerializationTensor(inputName, inputShape, inputDType, {})); in ConvertReshapeToTosaOperator()
60 {inputName}, // inputs in ConvertReshapeToTosaOperator()
DSliceOperator.cpp13 std::string inputName = std::string("input0_"); in ConvertSliceToTosaOperator() local
23 inputName = GenerateUniqueName(connectedLayer, 0); in ConvertSliceToTosaOperator()
37 {inputName}, in ConvertSliceToTosaOperator()
45 if(inputName.find("input0_") != std::string::npos) in ConvertSliceToTosaOperator()
50 tensors.push_back(new TosaSerializationTensor(inputName, inputShape, inputDType, {})); in ConvertSliceToTosaOperator()
63 {inputName}, // inputs in ConvertSliceToTosaOperator()
DConcatOperator.cpp36 std::string inputName = GenerateUniqueName(connectedLayer, i); in ConvertConcatToTosaOperator() local
37 inputNames.push_back(inputName); in ConvertConcatToTosaOperator()
DConv2dOperator.cpp37 std::string inputName = GenerateUniqueName(connectedLayer, i); in ConvertConv2dToTosaOperator() local
38 inputNames.push_back(inputName); in ConvertConv2dToTosaOperator()
/external/armnn/src/armnnUtils/
DParserPrototxtFixture.hpp35 void SetupSingleInputSingleOutput(const std::string& inputName, const std::string& outputName);
37 const std::string& inputName,
41 const std::string& inputName,
87 void ParserPrototxtFixture<TParser>::SetupSingleInputSingleOutput(const std::string& inputName, in SetupSingleInputSingleOutput() argument
91 m_SingleInputName = inputName; in SetupSingleInputSingleOutput()
98 const std::string& inputName, in SetupSingleInputSingleOutput() argument
102 m_SingleInputName = inputName; in SetupSingleInputSingleOutput()
104 Setup({ { inputName, inputTensorShape } }, { outputName }); in SetupSingleInputSingleOutput()
110 const std::string& inputName, in SetupSingleInputSingleOutput() argument
115 m_SingleInputName = inputName; in SetupSingleInputSingleOutput()
[all …]
/external/conscrypt/common/src/test/java/org/conscrypt/java/security/
DMessageDigestTest.java89 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument
96 expectations.put(inputName, expected); in putExpectation()
248 String inputName = expectation.getKey(); in test_MessageDigest() local
251 if (inputName.equals(INPUT_EMPTY)) { in test_MessageDigest()
253 } else if (inputName.equals(INPUT_256MB)) { in test_MessageDigest()
260 throw new AssertionError(inputName); in test_MessageDigest()
/external/armnn/tests/ExecuteNetwork/
DTfliteExecutor.cpp58 const auto& inputName = m_TfLiteInterpreter->tensor(input)->name; in TfLiteExecutor() local
78 PopulateTensorWithData<float>(inputData, inputSize, dataFile, inputName); in TfLiteExecutor()
84 PopulateTensorWithData<int32_t>(inputData, inputSize, dataFile, inputName); in TfLiteExecutor()
90 PopulateTensorWithData<uint8_t>(inputData, inputSize, dataFile, inputName); in TfLiteExecutor()
96 PopulateTensorWithData<int16_t>(inputData, inputSize, dataFile, inputName); in TfLiteExecutor()
102 PopulateTensorWithData<int8_t>(inputData, inputSize, dataFile, inputName); in TfLiteExecutor()
113 …ARMNN_LOG(info) << "Input tensor \"" << inputName << "\" is constant and will not be populated wit… in TfLiteExecutor()
DArmNNExecutor.cpp240 for (const auto& inputName : inputNames) in PrintNetworkInfo() local
242 const auto inputInfo = m_IOInfo.m_InputInfoMap[inputName].second; in PrintNetworkInfo()
243 …ss << inputName << ", " << inputInfo.GetShape() << ", " << GetDataTypeName(inputInfo.GetDataType(… in PrintNetworkInfo()
357 for (const auto& inputName: inputNames) in SetupInputsAndOutputs() local
362 bindingPointInfo = m_IOInfo.m_InputInfoMap.at(inputName); in SetupInputsAndOutputs()
366 LogAndThrow("Input with inputName: " + inputName + " not found."); in SetupInputsAndOutputs()
390 … PopulateTensorWithData<float>(typedTensor, tensorInfo.GetNumElements(), dataFile, inputName); in SetupInputsAndOutputs()
396 … PopulateTensorWithData<int16_t>(typedTensor, tensorInfo.GetNumElements(), dataFile, inputName); in SetupInputsAndOutputs()
403 … PopulateTensorWithData<int8_t>(typedTensor, tensorInfo.GetNumElements(), dataFile, inputName); in SetupInputsAndOutputs()
409 … PopulateTensorWithData<uint8_t>(typedTensor, tensorInfo.GetNumElements(), dataFile, inputName); in SetupInputsAndOutputs()
[all …]
DArmNNExecutor.hpp121 …tual armnn::BindingPointInfo GetInputBindingPointInfo(size_t id, const std::string& inputName) = 0;
134 … armnn::BindingPointInfo GetInputBindingPointInfo(size_t, const std::string& inputName) override;
149 …indingPointInfo GetInputBindingPointInfo(size_t subgraphId, const std::string& inputName) override;
164 …indingPointInfo GetInputBindingPointInfo(size_t subgraphId, const std::string& inputName) override;
/external/conscrypt/repackaged/common/src/test/java/com/android/org/conscrypt/java/security/
DMessageDigestTest.java92 private static void putExpectation(String algorithm, String inputName, byte[] expected) { in putExpectation() argument
99 expectations.put(inputName, expected); in putExpectation()
251 String inputName = expectation.getKey(); in test_MessageDigest() local
254 if (inputName.equals(INPUT_EMPTY)) { in test_MessageDigest()
256 } else if (inputName.equals(INPUT_256MB)) { in test_MessageDigest()
263 throw new AssertionError(inputName); in test_MessageDigest()
/external/tensorflow/tensorflow/tools/android/test/src/org/tensorflow/demo/
DTensorFlowMultiBoxDetector.java48 private String inputName; field in TensorFlowMultiBoxDetector
85 final String inputName, in create() argument
94 d.inputName = inputName; in create()
99 final Operation inputOp = g.operation(inputName); in create()
101 throw new RuntimeException("Failed to find input Node '" + inputName + "'"); in create()
221 inferenceInterface.feed(inputName, floatValues, 1, inputSize, inputSize, 3); in recognizeImage()
DTensorFlowImageClassifier.java42 private String inputName; field in TensorFlowImageClassifier
81 String inputName, in create() argument
84 c.inputName = inputName; in create()
145 inferenceInterface.feed(inputName, floatValues, 1, inputSize, inputSize, 3); in recognizeImage()
DTensorFlowObjectDetectionAPIModel.java47 private String inputName; field in TensorFlowObjectDetectionAPIModel
95 d.inputName = "image_tensor"; in create()
100 final Operation inputOp = g.operation(d.inputName); in create()
102 throw new RuntimeException("Failed to find input Node '" + d.inputName + "'"); in create()
153 inferenceInterface.feed(inputName, byteValues, 1, inputSize, inputSize, 3); in recognizeImage()
DTensorFlowYoloDetector.java75 private String inputName; field in TensorFlowYoloDetector
94 final String inputName, in create() argument
98 d.inputName = inputName; in create()
154 inferenceInterface.feed(inputName, floatValues, 1, inputSize, inputSize, 3); in recognizeImage()
/external/proguard/src/proguard/io/
DClassRewriter.java53 String inputName = dataEntry.getName(); in read() local
54 …String className = inputName.substring(0, inputName.length() - ClassConstants.CLASS_FILE_EXTENSION… in read()
/external/tensorflow/tensorflow/lite/swift/Sources/
DSignatureRunnerError.swift23 case failedToResizeInputTensor(inputName: String)
42 case .failedToResizeInputTensor(let inputName):
DSignatureRunner.swift135 for (inputName, inputData) in inputs { in invoke()
136 try copy(inputData, toInputNamed: inputName) in invoke()
180 throw SignatureRunnerError.failedToResizeInputTensor(inputName: name) in resizeInput()
/external/armnn/tests/NetworkExecutionUtils/
DNetworkExecutionUtils.hpp131 const std::string& inputName) in PopulateTensorWithData() argument
162 << " for input \"" << inputName << "\"."; in PopulateTensorWithData()
177 ARMNN_LOG(error) << "Number of elements: " << (index +1) << " in file \"" << inputName in PopulateTensorWithData()
179 << " for input \"" << inputName << "\"."; in PopulateTensorWithData()
/external/tensorflow/tensorflow/lite/objc/sources/
DTFLSignatureRunner.mm101 NSString *inputName = @"";
103 inputName = [NSString stringWithUTF8String:inputNameCString] ?: @"";
105 [mutableInputsArray addObject:inputName];
196 for (NSString *inputName in inputs.allKeys) {
197 TFLTensor *inputTensor = [self inputTensorWithName:inputName error:error];
199 if (![inputTensor copyData:inputs[inputName] error:error]) return NO;
/external/armnn/src/backends/tosaReference/workloads/
DTosaRefPreCompiledWorkload.cpp111 std::string inputName, in SetInput() argument
117 runner.setInput<T>(inputName, inputData); in SetInput()
DTosaRefPreCompiledWorkload.hpp46 …void SetInput(TosaReference::IModelRunner& runner, std::string inputName, uint32_t inputIndex) con…

12