/external/antlr/tool/src/test/java/org/antlr/test/ |
D | TestTokenRewriteStream.java | 34 import org.antlr.tool.Interpreter; 52 Interpreter lexEngine = new Interpreter(g, input); in testInsertBeforeIndex0() 67 Interpreter lexEngine = new Interpreter(g, input); in testInsertAfterLastIndex() 82 Interpreter lexEngine = new Interpreter(g, input); in test2InsertBeforeAfterMiddleIndex() 99 Interpreter lexEngine = new Interpreter(g, input); in testReplaceIndex0() 115 Interpreter lexEngine = new Interpreter(g, input); in testReplaceLastIndex() 131 Interpreter lexEngine = new Interpreter(g, input); in testReplaceMiddleIndex() 152 Interpreter lexEngine = new Interpreter(g, input); in testToStringStartStop() 187 Interpreter lexEngine = new Interpreter(g, input); in testToStringStartStop2() 234 Interpreter lexEngine = new Interpreter(g, input); in test2ReplaceMiddleIndex() [all …]
|
D | TestInterpretedLexing.java | 35 import org.antlr.tool.Interpreter; 86 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testSimpleAltCharTest() 87 engine = new Interpreter(g, new ANTLRStringStream("b")); in testSimpleAltCharTest() 90 engine = new Interpreter(g, new ANTLRStringStream("c")); in testSimpleAltCharTest() 101 Interpreter engine = new Interpreter(g, new ANTLRStringStream("abc")); // should ignore the x in testSingleRuleRef() 112 Interpreter engine = new Interpreter(g, new ANTLRStringStream("12x")); // should ignore the x in testSimpleLoop() 115 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testSimpleLoop() 125 Interpreter engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop() 127 engine = new Interpreter(g, new ANTLRStringStream("a")); in testMultAltLoop() 130 engine = new Interpreter(g, new ANTLRStringStream("1234")); in testMultAltLoop() [all …]
|
D | TestInterpretedParsing.java | 34 import org.antlr.tool.Interpreter; 66 Interpreter lexEngine = new Interpreter(g, input); in testSimpleParse() 71 Interpreter parseEngine = new Interpreter(pg, tokens); in testSimpleParse() 101 Interpreter lexEngine = new Interpreter(g, input); in testMismatchedTokenError() 106 Interpreter parseEngine = new Interpreter(pg, tokens); in testMismatchedTokenError() 136 Interpreter lexEngine = new Interpreter(g, input); in testMismatchedSetError() 141 Interpreter parseEngine = new Interpreter(pg, tokens); in testMismatchedSetError() 171 Interpreter lexEngine = new Interpreter(g, input); in testNoViableAltError() 176 Interpreter parseEngine = new Interpreter(pg, tokens); in testNoViableAltError()
|
D | TestCommonTokenStream.java | 33 import org.antlr.tool.Interpreter; 53 Interpreter lexEngine = new Interpreter(g, input); in testFirstToken() 74 Interpreter lexEngine = new Interpreter(g, input); in test2ndToken() 95 Interpreter lexEngine = new Interpreter(g, input); in testCompleteBuffer() 125 Interpreter lexEngine = new Interpreter(g, input); in testCompleteBufferAfterConsuming() 156 Interpreter lexEngine = new Interpreter(g, input); in testLookback()
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/ |
D | InterpreterTest.java | 65 Interpreter interpreter = new Interpreter(MODEL_BUFFER); in testInterpreter() 77 Interpreter interpreter = in testInterpreterWithOptions() 78 new Interpreter( in testInterpreterWithOptions() 80 new Interpreter.Options() in testInterpreterWithOptions() 98 Interpreter interpreter = new Interpreter(new File(MODEL_PATH)); in testRunWithFileModel() 116 Interpreter interpreter = new Interpreter(byteBuffer); in testRunWithDirectByteBufferModel() 135 new Interpreter(byteBuffer); in testRunWithInvalidByteBufferModel() 148 Interpreter interpreter = new Interpreter(MODEL_BUFFER); in testRun() 165 Interpreter interpreter = new Interpreter(MODEL_BUFFER); in testRunWithBoxedInputs() 180 Interpreter interpreter = new Interpreter(MULTIPLE_INPUTS_MODEL_BUFFER); in testRunForMultipleInputsOutputs() [all …]
|
D | InterpreterMobileNetTest.java | 49 runMobileNetFloatTest(new Interpreter.Options()); in testMobileNet() 54 runMobileNetFloatTest(new Interpreter.Options().setNumThreads(2)); in testMobileNetMultithreaded() 59 runMobileNetFloatTest(new Interpreter.Options().setUseXNNPACK(true)); in testMobileNetEnhancedCpuKernels() 64 runMobileNetFloatTest(new Interpreter.Options().setUseXNNPACK(true).setNumThreads(2)); in testMobileNetEnhancedCpuKernelsMultithreaded() 69 runMobileNetQuantizedTest(new Interpreter.Options()); in testMobileNetQuantized() 74 runMobileNetQuantizedTest(new Interpreter.Options().setNumThreads(2)); in testMobileNetQuantizedMultithreaded() 80 runMobileNetQuantizedTest(new Interpreter.Options().setUseXNNPACK(true)); in testMobileNetQuantizedEnhancedCpu() 83 private static void runMobileNetFloatTest(Interpreter.Options options) { in runMobileNetFloatTest() 88 try (Interpreter interpreter = new Interpreter(MOBILENET_FLOAT_MODEL_BUFFER, options)) { in runMobileNetFloatTest() 100 private static void runMobileNetQuantizedTest(Interpreter.Options options) { in runMobileNetQuantizedTest() [all …]
|
D | InterpreterFlexTest.java | 43 Interpreter.Options options = new Interpreter.Options().addDelegate(delegate); in testFlexModel() 44 try (Interpreter interpreter = new Interpreter(FLEX_MODEL_BUFFER, options)) { in testFlexModel() 54 try (Interpreter interpreter = new Interpreter(FLEX_MODEL_BUFFER)) { in testFlexModelDelegateAutomaticallyApplied() 62 Interpreter.Options options = new Interpreter.Options(); in testFlexModelDelegateAutomaticallyAppliedBeforeOtherDelegates() 64 Interpreter interpreter = in testFlexModelDelegateAutomaticallyAppliedBeforeOtherDelegates() 65 new Interpreter(FLEX_MODEL_BUFFER, options.addDelegate(delegate))) { in testFlexModelDelegateAutomaticallyAppliedBeforeOtherDelegates() 70 private static void testCommon(Interpreter interpreter) { in testCommon()
|
/external/tensorflow/tensorflow/lite/ |
D | interpreter.cc | 88 Interpreter::Interpreter(ErrorReporter* error_reporter) in Interpreter() function in tflite::Interpreter 116 Interpreter::~Interpreter() { in ~Interpreter() 138 void Interpreter::SetExternalContext(TfLiteExternalContextType type, in SetExternalContext() 163 TfLiteStatus Interpreter::SetCustomAllocationForTensor( in SetCustomAllocationForTensor() 169 TfLiteStatus Interpreter::SetInputs(std::vector<int> inputs) { in SetInputs() 173 TfLiteStatus Interpreter::SetOutputs(std::vector<int> outputs) { in SetOutputs() 177 TfLiteStatus Interpreter::SetVariables(std::vector<int> variables) { in SetVariables() 181 TfLiteStatus Interpreter::AllocateTensors() { in AllocateTensors() 238 void Interpreter::ReserveNodes(int count) { in ReserveNodes() 242 void Interpreter::AddSubgraphs(int subgraphs_to_add, in AddSubgraphs() [all …]
|
D | model_test.cc | 134 std::unique_ptr<Interpreter> interpreter; in TEST() 154 std::unique_ptr<Interpreter> interpreter; in TEST() 162 std::unique_ptr<Interpreter> interpreter; in TEST() 172 std::unique_ptr<Interpreter> interpreter; in TEST() 185 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() 197 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() 280 std::unique_ptr<Interpreter> interpreter; in TEST() 300 std::unique_ptr<Interpreter> interpreter(new Interpreter); in TEST() 345 std::unique_ptr<Interpreter> interpreter; in TEST() 359 std::unique_ptr<Interpreter> interpreter; in TEST() [all …]
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/nnapi/ |
D | NnApiDelegateTest.java | 25 import org.tensorflow.lite.Interpreter; 44 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithNnApi() 46 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithNnApi() 61 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithNnApiAndXNNPack() 65 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithNnApiAndXNNPack() 80 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithNnApiAllowFp16() 85 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithNnApiAllowFp16() 100 Interpreter.Options options = new Interpreter.Options(); in testGetNnApiErrnoReturnsZeroIfNoNnapiCallFailed() 102 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testGetNnApiErrnoReturnsZeroIfNoNnapiCallFailed()
|
/external/sl4a/Common/src/com/googlecode/android_scripting/interpreter/ |
D | InterpreterConfiguration.java | 52 private final Set<Interpreter> mInterpreterSet; 65 private final Map<String, Interpreter> mmDiscoveredInterpreters; 71 mmDiscoveredInterpreters = new HashMap<String, Interpreter>(); in InterpreterListener() 118 Interpreter discoveredInterpreter = buildInterpreter(packageName); in addInterpreter() 135 Interpreter interpreter = mmDiscoveredInterpreters.get(packageName); in remove() 148 private Interpreter buildInterpreter(String packageName) { in buildInterpreter() 172 return Interpreter.buildFromMaps(interpreterMap, environmentMap, argumentsMap); in buildInterpreter() 214 mInterpreterSet = new CopyOnWriteArraySet<Interpreter>(); in InterpreterConfiguration() 255 public List<? extends Interpreter> getSupportedInterpreters() { in getSupportedInterpreters() 256 return new ArrayList<Interpreter>(mInterpreterSet); in getSupportedInterpreters() [all …]
|
/external/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.cpp | 26 RegisterInterp() { Interpreter::Register(); } in RegisterInterp() 35 ExecutionEngine *Interpreter::create(std::unique_ptr<Module> M, in create() 45 return new Interpreter(std::move(M)); in create() 51 Interpreter::Interpreter(std::unique_ptr<Module> M) in Interpreter() function in Interpreter 63 Interpreter::~Interpreter() { in ~Interpreter() 67 void Interpreter::runAtExitHandlers () { in runAtExitHandlers() 77 GenericValue Interpreter::runFunction(Function *F, in runFunction()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.cpp | 25 RegisterInterp() { Interpreter::Register(); } in RegisterInterp() 34 ExecutionEngine *Interpreter::create(std::unique_ptr<Module> M, in create() 48 return new Interpreter(std::move(M)); in create() 54 Interpreter::Interpreter(std::unique_ptr<Module> M) in Interpreter() function in Interpreter 66 Interpreter::~Interpreter() { in ~Interpreter() 70 void Interpreter::runAtExitHandlers () { in runAtExitHandlers() 80 GenericValue Interpreter::runFunction(Function *F, in runFunction()
|
/external/llvm-project/llvm/lib/ExecutionEngine/Interpreter/ |
D | Interpreter.cpp | 25 RegisterInterp() { Interpreter::Register(); } in RegisterInterp() 34 ExecutionEngine *Interpreter::create(std::unique_ptr<Module> M, in create() 48 return new Interpreter(std::move(M)); in create() 54 Interpreter::Interpreter(std::unique_ptr<Module> M) in Interpreter() function in Interpreter 66 Interpreter::~Interpreter() { in ~Interpreter() 70 void Interpreter::runAtExitHandlers () { in runAtExitHandlers() 80 GenericValue Interpreter::runFunction(Function *F, in runFunction()
|
/external/tflite-support/tensorflow_lite_support/cc/port/default/ |
D | tflite_wrapper.h | 45 std::function<absl::Status(std::unique_ptr<tflite::Interpreter>*)> 54 const std::function<absl::Status(tflite::Interpreter* interpreter)>& 66 tflite::Interpreter& operator*() { return *interpreter_; } 67 tflite::Interpreter* operator->() { return interpreter_.get(); } 68 tflite::Interpreter& operator*() const { return *interpreter_; } 69 tflite::Interpreter* operator->() const { return interpreter_.get(); } 70 tflite::Interpreter* get() const { return interpreter_.get(); } in get() 76 std::unique_ptr<tflite::Interpreter> interpreter_;
|
/external/tensorflow/tensorflow/lite/java/src/test/java/org/tensorflow/lite/gpu/ |
D | GpuDelegateTest.java | 30 import org.tensorflow.lite.Interpreter; 53 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithGpu_FloatModel() 55 Interpreter interpreter = new Interpreter(MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_FloatModel() 78 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithGpu_QuantModelRunWithDelegate() 81 Interpreter interpreter = in testInterpreterWithGpu_QuantModelRunWithDelegate() 82 new Interpreter(MOBILENET_QUANTIZED_MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_QuantModelRunWithDelegate() 100 Interpreter.Options options = new Interpreter.Options(); in testInterpreterWithGpu_QuantModelRunOnCPU() 103 Interpreter interpreter = in testInterpreterWithGpu_QuantModelRunOnCPU() 104 new Interpreter(MOBILENET_QUANTIZED_MODEL_BUFFER, options.addDelegate(delegate))) { in testInterpreterWithGpu_QuantModelRunOnCPU()
|
/external/tflite-support/tensorflow_lite_support/cc/task/core/ |
D | tflite_engine.h | 60 using Interpreter = struct TfLiteInterpreter; 65 using Interpreter = tflite::Interpreter; variable 67 using InterpreterDeleter = std::default_delete<Interpreter>; 79 static int32_t InputCount(const Interpreter* interpreter) { in InputCount() 86 static int32_t OutputCount(const Interpreter* interpreter) { in OutputCount() 93 static TfLiteTensor* GetInput(Interpreter* interpreter, int index) { in GetInput() 101 static const TfLiteTensor* GetInput(const Interpreter* interpreter, in GetInput() 109 static TfLiteTensor* GetOutput(Interpreter* interpreter, int index) { in GetOutput() 121 static const TfLiteTensor* GetOutput(const Interpreter* interpreter, in GetOutput() 134 Interpreter* interpreter() { return interpreter_.get(); } in interpreter() [all …]
|
/external/llvm-project/llvm/tools/bugpoint/ |
D | ExecutionDriver.cpp | 157 if (!Interpreter) { in initializeExecutionEnvironment() 159 Interpreter = in initializeExecutionEnvironment() 162 if (!Interpreter) { in initializeExecutionEnvironment() 164 Interpreter = AbstractInterpreter::createLLC( in initializeExecutionEnvironment() 167 if (!Interpreter) { in initializeExecutionEnvironment() 169 Interpreter = in initializeExecutionEnvironment() 172 if (!Interpreter) { in initializeExecutionEnvironment() 178 Interpreter = in initializeExecutionEnvironment() 183 Interpreter = AbstractInterpreter::createLLC( in initializeExecutionEnvironment() 188 Interpreter = in initializeExecutionEnvironment() [all …]
|
/external/llvm/tools/bugpoint/ |
D | ExecutionDriver.cpp | 160 if (!Interpreter) { in initializeExecutionEnvironment() 162 Interpreter = AbstractInterpreter::createJIT(getToolName(), Message, in initializeExecutionEnvironment() 165 if (!Interpreter) { in initializeExecutionEnvironment() 167 Interpreter = AbstractInterpreter::createLLC(getToolName(), Message, in initializeExecutionEnvironment() 171 if (!Interpreter) { in initializeExecutionEnvironment() 173 Interpreter = AbstractInterpreter::createLLI(getToolName(), Message, in initializeExecutionEnvironment() 176 if (!Interpreter) { in initializeExecutionEnvironment() 182 Interpreter = AbstractInterpreter::createLLI(getToolName(), Message, in initializeExecutionEnvironment() 188 Interpreter = AbstractInterpreter::createLLC(getToolName(), Message, in initializeExecutionEnvironment() 194 Interpreter = AbstractInterpreter::createJIT(getToolName(), Message, in initializeExecutionEnvironment() [all …]
|
/external/testng/src/main/java/org/testng/internal/ |
D | Bsh.java | 4 import bsh.Interpreter; 14 private static Interpreter s_interpreter; 20 Interpreter interpreter = getInterpreter(); in includeMethodFromExpression() 42 private static Interpreter getInterpreter() { in getInterpreter() 44 s_interpreter= new Interpreter(); in getInterpreter() 50 …private void setContext(Interpreter interpreter, Method method, Map<String, String> groups, ITestN… in setContext() 61 private void resetContext(Interpreter interpreter) { in resetContext()
|
/external/skqp/src/sksl/ |
D | SkSLInterpreter.cpp | 30 void Interpreter::run() { in run() 47 void Interpreter::run(const FunctionDefinition& f) { in run() 60 void Interpreter::push(Value value) { in push() 64 Interpreter::Value Interpreter::pop() { in pop() 71 Interpreter::StackIndex Interpreter::stackAlloc(int count) { in stackAlloc() 79 void Interpreter::runStatement() { in runStatement() 179 static Interpreter::TypeKind type_kind(const Type& type) { in type_kind() 181 return Interpreter::kInt_TypeKind; in type_kind() 183 return Interpreter::kFloat_TypeKind; in type_kind() 188 Interpreter::StackIndex Interpreter::getLValue(const Expression& expr) { in getLValue() [all …]
|
/external/tensorflow/tensorflow/lite/java/src/main/native/ |
D | nativeinterpreterwrapper_jni.cc | 41 using tflite_shims::Interpreter; 46 Interpreter* convertLongToInterpreter(JNIEnv* env, jlong handle) { in convertLongToInterpreter() 52 return reinterpret_cast<Interpreter*>(handle); in convertLongToInterpreter() 166 jstring method_name, Interpreter* interpreter, in GetTensorIndexForSignature() 211 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getInputNames() 233 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_allocateTensors() 251 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_hasUnresolvedFlexOp() 274 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureDefNames() 296 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureInputs() 309 Interpreter* interpreter = convertLongToInterpreter(env, handle); in Java_org_tensorflow_lite_NativeInterpreterWrapper_getSignatureOutputs() [all …]
|
/external/libtextclassifier/native/utils/ |
D | tflite-model-executor.h | 76 std::unique_ptr<tflite::Interpreter> CreateInterpreter() const; 80 tflite::Interpreter* interpreter) const { in SetInput() 87 tflite::Interpreter* interpreter) const { in SetInput() 94 tflite::Interpreter* interpreter) const { in SetInput() 126 const tflite::Interpreter* interpreter) const { in OutputView() 137 const tflite::Interpreter* interpreter) const { in Output() 156 tflite::Interpreter* interpreter) const; 160 const int output_index, const tflite::Interpreter* interpreter) const; 164 const int output_index, const tflite::Interpreter* interpreter) const;
|
/external/tensorflow/tensorflow/lite/experimental/acceleration/configuration/ |
D | nnapi_plugin_test.cc | 56 tflite::Interpreter* Interpreter() const { return interpreter_.get(); } in Interpreter() function in tflite::__anon04ac112d0111::SingleAddOpModel 87 EXPECT_EQ(model.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in CheckExecutionPreference() 106 EXPECT_EQ(model.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in CheckExecutionPriority() 132 EXPECT_EQ(model_.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in TEST_F() 137 EXPECT_EQ(model_.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in TEST_F() 176 EXPECT_EQ(model_.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in TEST_F() 192 EXPECT_EQ(model_.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in TEST_F() 208 EXPECT_EQ(model_.Interpreter()->ModifyGraphWithDelegate(delegate_.get()), in TEST_F()
|
/external/tensorflow/tensorflow/lite/python/ |
D | interpreter_test.py | 87 interpreter_wrapper.Interpreter( 95 interpreter_wrapper.Interpreter( 101 interpreter = interpreter_wrapper.Interpreter( 133 interpreter = interpreter_wrapper.Interpreter( 155 interpreter = interpreter_wrapper.Interpreter(model_content=data) 187 interpreter = interpreter_wrapper.Interpreter( 229 interpreter = interpreter_wrapper.Interpreter( 240 interpreter = interpreter_wrapper.Interpreter( 251 interpreter = interpreter_wrapper.Interpreter( 293 interpreter_wrapper.Interpreter(model_content=six.b('garbage')) [all …]
|