Home
last modified time | relevance | path

Searched refs:engine_ (Results 1 – 25 of 41) sorted by relevance

12

/third_party/skia/third_party/externals/tint/fuzzers/
Drandom_generator.cc49 : engine_(std::move(engine)) {} in RandomGenerator()
56 return engine_->RandomUInt32(lower, upper); in GetUInt32()
61 return engine_->RandomUInt32(0u, bound); in GetUInt32()
66 return engine_->RandomUInt64(lower, upper); in GetUInt64()
71 return engine_->RandomUInt64(static_cast<uint64_t>(0), bound); in GetUInt64()
76 engine_->RandomNBytes(&result, 1); in GetByte()
82 engine_->RandomNBytes(reinterpret_cast<uint8_t*>(&result), 4); in Get4Bytes()
88 engine_->RandomNBytes(dest, n); in GetNBytes()
92 return engine_->RandomUInt32(0u, 2u); in GetBool()
99 return engine_->RandomUInt32(0u, kMaxPercentage) < percentage; in GetWeightedBool()
Dmersenne_twister_engine.cc41 MersenneTwisterEngine::MersenneTwisterEngine(uint64_t seed) : engine_(seed) {} in MersenneTwisterEngine()
44 return RandomInteger(&engine_, lower, upper); in RandomUInt32()
48 return RandomInteger(&engine_, lower, upper); in RandomUInt64()
55 std::independent_bits_engine<std::mt19937_64, 8, uint8_t>(engine_)); in RandomNBytes()
/third_party/mindspore/tests/ut/cpp/pipeline/static_analysis/
Dstatic_analysis_test.cc122 AnalysisEnginePtr engine_; member in mindspore::abstract::TestInfer
125 void TestInfer::SetUp() { engine_ = SetupAnalysisEngineStub(); } in SetUp()
167 AbstractBasePtr abs_base_got = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
181 AnalysisEnginePtr engine_; member in mindspore::abstract::TestInferGraph
186 engine_ = SetupAnalysisEngineStub(); in SetUp()
265 AbstractBasePtr abs_base_got = engine_->Run(graph_f_, args_spec_list).inferred->abstract(); in TEST_F()
276 abs_base_got = engine_->Run(graph_alpha_, args_spec_list).inferred->abstract(); in TEST_F()
321 AnalysisEnginePtr engine_; member in mindspore::abstract::TestInferMetaGraph
326 engine_ = SetupAnalysisEngineStub(); in SetUp()
362 AbstractBasePtr abs_base_got = engine_->Run(func_graph_, args_spec_list).inferred->abstract(); in TEST_F()
[all …]
Dprim_test.cc100 AnalysisEnginePtr engine_; member in mindspore::abstract::TestPrim
104 void TestPrim::SetUp() { engine_ = SetupAnalysisEngine(); } in SetUp()
142 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
167 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
192 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
209 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
227 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
243 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
283 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
304 AbstractBasePtr res = engine_->Run(func_graph, args_spec_list).inferred->abstract(); in TEST_F()
[all …]
Dspecialize_test.cc44 std::shared_ptr<AnalysisEngine> engine_; member in mindspore::abstract::TestSpecializeGraph
51 engine_ = SetupAnalysisEngine(); in SetUp()
53 special_ = std::make_shared<ProgramSpecializer>(engine_); in SetUp()
131 AnalysisResult result = engine_->Run(graph_f_, args_spec_list); in TEST_F()
141 AnalysisResult result = engine_->Run(graph_alpha_, args_spec_list); in TEST_F()
150 std::shared_ptr<AnalysisEngine> engine_; member in mindspore::abstract::TestSpecializeMetaFuncGraph
185 engine_ = SetupAnalysisEngine(); in SetUp()
186 special_ = std::make_shared<ProgramSpecializer>(engine_); in SetUp()
218 AnalysisResult result = engine_->Run(graph_, args_spec_list); in TEST_F()
/third_party/boost/boost/asio/ssl/detail/
Dio.hpp38 do switch (op(core.engine_, ec, bytes_transferred)) in io()
53 core.input_ = core.engine_.put_input(core.input_); in io()
63 core.engine_.get_output(core.output_buffer_), io_ec); in io()
75 core.engine_.get_output(core.output_buffer_), io_ec); in io()
80 core.engine_.map_error_code(ec); in io()
86 core.engine_.map_error_code(ec); in io()
92 core.engine_.map_error_code(ec); in io()
146 switch (want_ = op_(core_.engine_, ec_, bytes_transferred_)) in operator ()()
154 core_.input_ = core_.engine_.put_input(core_.input_); in operator ()()
205 core_.engine_.get_output(core_.output_buffer_), in operator ()()
[all …]
Dstream_core.hpp43 : engine_(context), in stream_core()
57 : engine_(BOOST_ASIO_MOVE_CAST(engine)(other.engine_)), in stream_core()
94 engine engine_; member
/third_party/boost/libs/asio/include/boost/asio/ssl/detail/
Dio.hpp38 do switch (op(core.engine_, ec, bytes_transferred)) in io()
53 core.input_ = core.engine_.put_input(core.input_); in io()
63 core.engine_.get_output(core.output_buffer_), io_ec); in io()
75 core.engine_.get_output(core.output_buffer_), io_ec); in io()
80 core.engine_.map_error_code(ec); in io()
86 core.engine_.map_error_code(ec); in io()
92 core.engine_.map_error_code(ec); in io()
146 switch (want_ = op_(core_.engine_, ec_, bytes_transferred_)) in operator ()()
154 core_.input_ = core_.engine_.put_input(core_.input_); in operator ()()
205 core_.engine_.get_output(core_.output_buffer_), in operator ()()
[all …]
Dstream_core.hpp43 : engine_(context), in stream_core()
57 : engine_(BOOST_ASIO_MOVE_CAST(engine)(other.engine_)), in stream_core()
94 engine engine_; member
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/gpu/trt/
Dtrt_kernel.cc55 engine_ = TrtPtr(runtime_->deserializeCudaEngine(serialize_.c_str(), serialize_.size(), nullptr)); in Init()
56 MS_EXCEPTION_IF_NULL(engine_); in Init()
57 if (SizeToInt(input_num + output_num) != engine_->getNbBindings()) { in Init()
59 << ", expect: " << engine_->getNbBindings(); in Init()
62 context_ = TrtPtr(engine_->createExecutionContext()); in Init()
70 engine_.reset(); in ReleaseResource()
Dtrt_kernel.h31 TrtKernel() : serialize_(""), runtime_(nullptr), engine_(nullptr), context_(nullptr) {} in TrtKernel()
46 std::shared_ptr<nvinfer1::ICudaEngine> engine_; variable
/third_party/mindspore/mindspore/ccsrc/backend/kernel_compiler/cpu/mkldnn/
Dmkl_kernel_engine.h40 const dnnl::engine &engine() const { return engine_; } in DISABLE_COPY_AND_ASSIGN()
49 MKLKernelEngine() : engine_(dnnl::engine::kind::cpu, 0), stream_(engine_) {} in MKLKernelEngine()
52 dnnl::engine engine_; variable
Dmkl_kernel_engine.cc32 return dnnl::memory(mem_desc, engine_); in CreateMemory()
34 return dnnl::memory(mem_desc, engine_, nullptr); in CreateMemory()
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/trt_pass/
Dtrt_converter_context.cc90 engine_ = TrtPtr(builder_->buildEngineWithConfig(*network_, *config_)); in Serialize()
91 MS_EXCEPTION_IF_NULL(engine_); in Serialize()
93 std::shared_ptr<nvinfer1::IHostMemory> model_data = TrtPtr(engine_->serialize()); in Serialize()
236 for (int32_t i = 0; i < engine_->getNbBindings(); ++i) { in GetGraphInputs()
237 if (!engine_->bindingIsInput(i)) { in GetGraphInputs()
240 auto iter = graph_inputs.find(engine_->getBindingName(i)); in GetGraphInputs()
242 MS_LOG(EXCEPTION) << "Get graph inputs failed. input name" << engine_->getBindingName(i); in GetGraphInputs()
257 for (int32_t i = 0; i < engine_->getNbBindings(); ++i) { in GetGraphOutputs()
258 if (!engine_->bindingIsInput(i)) { in GetGraphOutputs()
259 const std::string &name = engine_->getBindingName(i); in GetGraphOutputs()
Dtrt_converter_context.h49 engine_(nullptr) {} in TrtConverterContext()
90 std::shared_ptr<nvinfer1::ICudaEngine> engine_; variable
/third_party/flutter/engine/flutter/shell/common/
Dshell.cc319 fml::MakeCopyable([engine = std::move(engine_), &ui_latch]() mutable { in ~Shell()
417 if (!engine_) { in GetUIIsolateLastError()
420 switch (engine_->GetUIIsolateLastError()) { in GetUIIsolateLastError()
439 if (!engine_) { in EngineHasLivePorts()
442 return engine_->UIIsolateHasLivePorts(); in EngineHasLivePorts()
462 engine_ = std::move(engine); in Setup()
468 weak_engine_ = engine_->GetWeakPtr(); in Setup()
555 auto ui_task = [engine = engine_->GetWeakPtr(), // in OnPlatformViewCreated()
648 auto ui_task = [engine = engine_->GetWeakPtr(), in OnPlatformViewDestroyed()
694 [engine = engine_->GetWeakPtr(), metrics]() { in OnPlatformViewSetViewportMetrics()
[all …]
Dace_shell.cc276 fml::MakeCopyable([engine = std::move(engine_), &ui_latch]() mutable { in ~Shell()
385 engine_ = std::move(engine); in Setup()
391 weak_engine_ = engine_->GetWeakPtr(); in Setup()
466 auto ui_task = [engine = engine_->GetWeakPtr()] { in OnPlatformViewCreated()
557 auto ui_task = [engine = engine_->GetWeakPtr(), in OnPlatformViewDestroyed()
590 [engine = engine_->GetWeakPtr(), idleCallback]() { in OnSetIdleNotificationCallback()
613 [engine = engine_->GetWeakPtr(), metrics]() { in OnPlatformViewSetViewportMetrics()
627 [engine = engine_->GetWeakPtr(), message = std::move(message)] { in OnPlatformViewDispatchPlatformMessage()
642 [engine = engine_->GetWeakPtr(), packet = std::move(packet), in OnPlatformViewDispatchPointerDataPacket()
706 task_runners_.GetUITaskRunner()->PostTask([engine = engine_->GetWeakPtr()]() { in OnPlatformViewMarkTextureFrameAvailable()
[all …]
/third_party/mindspore/tests/ut/cpp/operator/
Dcomposite_test.cc52 AnalysisEnginePtr engine_; member in mindspore::TestComposite
58engine_ = std::make_shared<AnalysisEngine>(abstract::GetPrimEvaluatorConstructors(), graph_manager… in SetUp()
104 engine_->Run(tupleSliceGraphPtr, args_spec_list); in TEST_F()
129 engine_->Run(tupleSliceGraphPtr, args_spec_list); in TEST_F()
162 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(tupleSliceGraphPtr, args_spec_list).in… in TEST_F()
188 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(tupleSliceGraphPtr, args_spec_list).in… in TEST_F()
214 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(tupleSliceGraphPtr, args_spec_list).in… in TEST_F()
240 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(tupleSliceGraphPtr, args_spec_list).in… in TEST_F()
267 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(unPackCallGraphPtr, args_spec_list).in… in TEST_F()
294 …AbstractTuplePtr ret = dyn_cast<AbstractTuple>(engine_->Run(unPackCallGraphPtr, args_spec_list).in… in TEST_F()
[all …]
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/
Dtensorrt_subgraph.cc38 if (engine_ != nullptr) { in ~TensorRTSubGraph()
39 engine_->destroy(); in ~TensorRTSubGraph()
40 engine_ = nullptr; in ~TensorRTSubGraph()
88 this->engine_ = runtime_->GetBuilder()->buildEngineWithConfig(*this->network_, *this->config_); in BuildEngine()
89 if (this->engine_ == nullptr) { in BuildEngine()
302 if (this->engine_ == nullptr) { in Prepare()
306 this->trt_context_ = this->engine_->createExecutionContext(); in Prepare()
311 int binding_num = this->engine_->getNbBindings(); in Prepare()
324 int index = this->engine_->getBindingIndex(tensor.Name().c_str()); in Prepare()
350 int index = this->engine_->getBindingIndex(tensor.Name().c_str()); in Prepare()
[all …]
/third_party/mindspore/mindspore/ccsrc/debug/
Dtrace.cc151 AnalysisEnginePtr engine_ = nullptr; member in mindspore::trace::AnalyzeFailExporter
194 MS_EXCEPTION_IF_NULL(engine_); in GetNodeType()
197 auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph); in GetNodeType()
212 MS_EXCEPTION_IF_NULL(engine_); in GetNodeAbstract()
215 auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph); in GetNodeAbstract()
226 MS_EXCEPTION_IF_NULL(engine_); in GetForwardConfig()
228 auto iter = engine_->anfnode_config_map().find(cur_cfg); in GetForwardConfig()
229 while (iter != engine_->anfnode_config_map().end()) { in GetForwardConfig()
234 iter = engine_->anfnode_config_map().find(cur_cfg); in GetForwardConfig()
247 auto cfg = engine_->MakeConfig(node, current_context_, dummy_call_func_graph); in ProcessFuncGraphCall()
[all …]
/third_party/mindspore/mindspore/ccsrc/pipeline/jit/static_analysis/
Dprogram_specialize.h49 …explicit ProgramSpecializer(const std::shared_ptr<AnalysisEngine> &engine) : engine_(engine), top_… in ProgramSpecializer()
50 mng_ = engine_->func_graph_manager(); in ProgramSpecializer()
62 std::shared_ptr<AnalysisEngine> engine() { return engine_; } in engine()
67 std::shared_ptr<AnalysisEngine> engine_;
93 std::shared_ptr<AnalysisEngine> engine_; variable
/third_party/skia/third_party/externals/spirv-tools/test/fuzzers/
Drandom_generator.cpp84 RandomGenerator::RandomGenerator(uint64_t seed) : engine_(seed) {} in RandomGenerator()
96 RandomUInt(&engine_, 0u, static_cast<unsigned int>(SPV_ENV_MAX))); in GetTargetEnv()
103 return RandomUInt(&engine_, lower, upper); in GetUInt32()
108 return RandomUInt(&engine_, 0u, bound); in GetUInt32()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzzers/
Drandom_generator.cpp84 RandomGenerator::RandomGenerator(uint64_t seed) : engine_(seed) {} in RandomGenerator()
96 RandomUInt(&engine_, 0u, static_cast<unsigned int>(SPV_ENV_MAX))); in GetTargetEnv()
103 return RandomUInt(&engine_, lower, upper); in GetUInt32()
108 return RandomUInt(&engine_, 0u, bound); in GetUInt32()
/third_party/grpc/src/cpp/client/
Dcronet_credentials.cc30 CronetChannelCredentialsImpl(void* engine) : engine_(engine) {} in CronetChannelCredentialsImpl()
52 grpc_cronet_secure_channel_create(engine_, target.c_str(), in CreateChannelWithInterceptors()
56 void* engine_; member in grpc::CronetChannelCredentialsImpl
/third_party/flutter/engine/flutter/shell/platform/windows/
Dwin32_flutter_window.cc46 engine_ = eng; in SetState()
51 messenger->engine = engine_; in SetState()
74 state->engine = engine_; in SetState()
177 if (engine_ == nullptr) { in SendWindowMetrics()
186 auto result = FlutterEngineSendWindowMetricsEvent(engine_, &event); in SendWindowMetrics()
294 FlutterEngineSendPointerEvent(engine_, &event, 1); in SendPointerEventWithData()

12