Home
last modified time | relevance | path

Searched refs:registry_ (Results 1 – 25 of 29) sorted by relevance

12

/external/tensorflow/tensorflow/c/experimental/gradients/
Dmath_grad_test.cc106 GradientRegistry registry_; member in tensorflow::gradients::internal::__anon87b76e350111::CppGradients
133 status_ = registry_.Register("AddV2", AddRegisterer); in TEST_P()
137 AddModel, BuildGradModel(AddModel, registry_), in TEST_P()
151 status_ = registry_.Register("Exp", ExpRegisterer); in TEST_P()
155 ExpModel, BuildGradModel(ExpModel, registry_), in TEST_P()
187 status_ = registry_.Register("MatMul", MatMulRegisterer); in TEST_P()
201 MatMulModel, BuildGradModel(MatMulModel, registry_), in TEST_P()
217 status_ = registry_.Register("Sqrt", SqrtRegisterer); in TEST_P()
221 SqrtModel, BuildGradModel(SqrtModel, registry_), in TEST_P()
235 status_ = registry_.Register("Neg", NegRegisterer); in TEST_P()
[all …]
/external/libchrome/mojo/public/cpp/bindings/lib/
Dsync_handle_watcher.cc20 registry_(SyncHandleRegistry::current()), in SyncHandleWatcher()
26 registry_->UnregisterHandle(handle_); in ~SyncHandleWatcher()
48 bool result = registry_->Wait(should_stop_array, 2); in SyncWatch()
62 registry_->RegisterHandle(handle_, handle_signals_, callback_); in IncrementRegisterCount()
71 registry_->UnregisterHandle(handle_); in DecrementRegisterCount()
Dsync_event_watcher.cc18 registry_(SyncHandleRegistry::current()), in SyncEventWatcher()
24 registry_->UnregisterEvent(event_, callback_); in ~SyncEventWatcher()
51 bool result = registry_->Wait(should_stop_array.container().data(), in SyncWatch()
65 registry_->RegisterEvent(event_, callback_); in IncrementRegisterCount()
74 registry_->UnregisterEvent(event_, callback_); in DecrementRegisterCount()
/external/tensorflow/tensorflow/compiler/tf2tensorrt/convert/
Dlogger_registry.cc30 if (!registry_.emplace(name, std::unique_ptr<nvinfer1::ILogger>(logger)) in Register()
39 const auto found = registry_.find(name); in LookUp()
40 if (found == registry_.end()) { in LookUp()
49 registry_ TF_GUARDED_BY(mu_);
/external/tensorflow/tensorflow/core/lib/monitoring/
Dcollection_registry.cc75 const auto found_it = registry_.find(metric_def->name()); in Register()
76 if (found_it != registry_.end()) { in Register()
81 registry_.insert( in Register()
91 registry_.erase(metric_def->name()); in Unregister()
99 for (const auto& registration : registry_) { in CollectMetrics()
/external/tensorflow/tensorflow/core/framework/
Dop.cc56 for (const auto& e : registry_) delete e.second; in ~OpRegistry()
95 gtl::FindWithDefault(registry_, op_type_name, nullptr)) { in LookUp()
112 res = gtl::FindWithDefault(registry_, op_type_name, nullptr); in LookUpSlow()
142 for (const auto& p : registry_) { in GetRegisteredOps()
151 for (const auto& p : registry_) { in GetOpRegistrationData()
171 registry_.begin(), registry_.end()); in Export()
240 !gtl::InsertIfNotPresent(&registry_, op_reg_data->op_def.name(), in RegisterAlreadyLocked()
Dop.h163 mutable std::unordered_map<string, const OpRegistrationData*> registry_
/external/tensorflow/tensorflow/compiler/mlir/
Dmlir_graph_optimization_pass.cc134 per_pass_state.reserve(registry_->passes().size()); in Run()
138 for (const auto& pass_registration : registry_->passes()) { in Run()
177 << "(registered " << registry_->passes().size() << ")"; in Run()
186 << ", Total: " << registry_->passes().size(); in Run()
222 for (auto& pass_registration : registry_->passes()) { in Run()
332 absl::c_any_of(registry_->passes(), [&](auto& pass_registration) -> bool { in Run()
341 << "(registered " << registry_->passes().size() << " passes)"; in Run()
346 << "(registered " << registry_->passes().size() in Run()
365 for (auto& pass_registration : registry_->passes()) { in Run()
Dmlir_graph_optimization_pass.h118 : registry_(registry) {} in registry_() function
140 const MlirOptimizationPassRegistry* registry_;
206 : registry_(registry) {} in registry_() function
211 const MlirV1CompatOptimizationPassRegistry* registry_;
/external/tensorflow/tensorflow/cc/framework/
Dgrad_op_registry.cc28 CHECK(registry_.insert({op, func}).second) << "Existing gradient for " << op; in Register()
33 auto iter = registry_.find(op); in Lookup()
34 if (iter == registry_.end()) { in Lookup()
Dgrad_op_registry.h54 std::unordered_map<string, GradFunc> registry_;
Dgradients.cc103 const ops::GradOpRegistry* registry_; member in tensorflow::__anonc8091ec30111::SymbolicGradientBuilder
146 registry_(registry), in SymbolicGradientBuilder()
376 Status s = registry_->Lookup(opname, &grad_fn); in IsPrimitiveOpWithNoGrad()
385 TF_RETURN_IF_ERROR(registry_->Lookup(op.node()->type_string(), &grad_fn)); in CallGradFunction()
/external/tensorflow/tensorflow/c/experimental/gradients/tape/
Dtape_context.cc24 : AbstractContext(kTape), parent_ctx_(c), tape_(tape), registry_(registry) { in TapeContext()
37 return new TapeOperation(parent_ctx_->CreateOperation(), tape_, registry_); in CreateOperation()
Dtape_context.h39 const GradientRegistry& registry_; variable
Dtape_operation.cc27 registry_(registry) { in TapeOperation()
211 TF_RETURN_IF_ERROR(registry_.Lookup(forward_op_, &backward_fn)); in Execute()
Dtape_operation.h75 const GradientRegistry& registry_; variable
/external/libchrome/components/policy/core/common/
Dmock_configuration_policy_provider.h40 ConfigurationPolicyProvider::Init(&registry_); in Init()
50 SchemaRegistry registry_; variable
/external/libchrome/mojo/public/cpp/bindings/tests/
Dversioning_test_service.cc100 registry_.AddInterface<HumanResourceDatabase>( in HumanResourceSystemServer()
108 registry_.BindInterface(interface_name, std::move(interface_pipe)); in OnBindInterface()
118 service_manager::BinderRegistry registry_; member in mojo::test::versioning::HumanResourceSystemServer
Dsync_handle_registry_unittest.cc17 SyncHandleRegistryTest() : registry_(SyncHandleRegistry::current()) {} in SyncHandleRegistryTest()
19 const scoped_refptr<SyncHandleRegistry>& registry() { return registry_; } in registry()
22 scoped_refptr<SyncHandleRegistry> registry_; member in mojo::SyncHandleRegistryTest
/external/tensorflow/tensorflow/core/platform/
Denv.cc67 mutable std::unordered_map<std::string, std::unique_ptr<FileSystem>> registry_
74 if (!registry_.emplace(scheme, std::unique_ptr<FileSystem>(factory())) in Register()
85 if (!registry_.emplace(scheme, std::move(filesystem)).second) { in Register()
94 const auto found = registry_.find(scheme); in Lookup()
95 if (found == registry_.end()) { in Lookup()
104 for (const auto& e : registry_) { in GetRegisteredFileSystemSchemes()
/external/tensorflow/tensorflow/c/eager/
Dgradients.cc56 auto iter = registry_.find(op_name); in Register()
57 if (iter != registry_.end()) { in Register()
61 registry_.insert({op_name, gradient_function_factory}); in Register()
67 auto iter = registry_.find(op.op_name); in Lookup()
68 if (iter == registry_.end()) { in Lookup()
Dgradients.h86 absl::flat_hash_map<string, GradientFunctionFactory> registry_;
/external/gflags/src/
Dgflags.cc929 explicit CommandLineFlagParser(FlagRegistry* reg) : registry_(reg) {} in CommandLineFlagParser()
981 FlagRegistry* const registry_; member in GFLAGS_NAMESPACE::__anon2c14dfba0111::CommandLineFlagParser
1034 registry_->Lock(); in ParseNewCommandLineFlags()
1059 CommandLineFlag* flag = registry_->SplitArgumentLocked(arg, &key, &value, in ParseNewCommandLineFlags()
1107 registry_->Unlock(); in ParseNewCommandLineFlags()
1148 CommandLineFlag* flag = registry_->FindFlagLocked(flagname); in ProcessFromenvLocked()
1184 if (value && !registry_->SetFlagLocked(flag, value, set_mode, &msg)) { in ProcessSingleOptionLocked()
1207 FlagRegistryLock frl(registry_); in ValidateFlags()
1208 for (FlagRegistry::FlagConstIterator i = registry_->flags_.begin(); in ValidateFlags()
1209 i != registry_->flags_.end(); ++i) { in ValidateFlags()
[all …]
/external/libchrome/mojo/public/cpp/bindings/
Dsync_event_watcher.h62 scoped_refptr<SyncHandleRegistry> registry_; variable
Dsync_handle_watcher.h64 scoped_refptr<SyncHandleRegistry> registry_; variable

12