Home
last modified time | relevance | path

Searched refs:ops_ (Results 1 – 20 of 20) sorted by relevance

/external/tensorflow/tensorflow/c/experimental/filesystem/
Dmodular_filesystem.cc39 if (ops_->new_random_access_file == nullptr) in NewRandomAccessFile()
46 ops_->new_random_access_file(filesystem_.get(), translated_name.c_str(), in NewRandomAccessFile()
58 if (ops_->new_writable_file == nullptr) in NewWritableFile()
65 ops_->new_writable_file(filesystem_.get(), translated_name.c_str(), in NewWritableFile()
77 if (ops_->new_appendable_file == nullptr) in NewAppendableFile()
84 ops_->new_appendable_file(filesystem_.get(), translated_name.c_str(), in NewAppendableFile()
96 if (ops_->new_read_only_memory_region_from_file == nullptr) in NewReadOnlyMemoryRegionFromFile()
104 ops_->new_read_only_memory_region_from_file( in NewReadOnlyMemoryRegionFromFile()
116 if (ops_->path_exists == nullptr) in FileExists()
122 ops_->path_exists(filesystem_.get(), translated_name.c_str(), in FileExists()
[all …]
Dmodular_filesystem.h53 ops_(std::move(filesystem_ops)), in ModularFileSystem()
60 ~ModularFileSystem() override { ops_->cleanup(filesystem_.get()); } in ~ModularFileSystem()
95 std::unique_ptr<const TF_FilesystemOps> ops_; variable
110 : filename_(filename), file_(std::move(file)), ops_(ops) {} in ModularRandomAccessFile()
112 ~ModularRandomAccessFile() override { ops_->cleanup(file_.get()); } in ~ModularRandomAccessFile()
121 const TF_RandomAccessFileOps* ops_; // not owned variable
130 : filename_(filename), file_(std::move(file)), ops_(ops) {} in ModularWritableFile()
132 ~ModularWritableFile() override { ops_->cleanup(file_.get()); } in ~ModularWritableFile()
144 const TF_WritableFileOps* ops_; // not owned variable
152 : region_(std::move(region)), ops_(ops) {} in ModularReadOnlyMemoryRegion()
[all …]
/external/avb/test/
Davb_slot_verify_unittest.cc43 ops_.set_delegate(this); in SetUp()
44 ops_.set_partition_dir(testdir_); in SetUp()
45 ops_.set_stored_rollback_indexes({{0, 0}, {1, 0}, {2, 0}, {3, 0}}); in SetUp()
46 ops_.set_stored_is_device_unlocked(false); in SetUp()
63 ops_.set_expected_public_key( in TEST_F()
69 avb_slot_verify(ops_.avb_ops(), in TEST_F()
104 ops_.set_expected_public_key( in TEST_F()
110 avb_slot_verify(ops_.avb_ops(), in TEST_F()
150 ops_.set_expected_public_key( in TEST_F()
153 ops_.set_stored_is_device_unlocked(true); in TEST_F()
[all …]
Davb_ab_flow_unittest.cc137 ops_.set_partition_dir(testdir_); in SetUp()
138 ops_.set_stored_rollback_indexes({{0, 0}, {1, 0}, {2, 0}, {3, 0}}); in SetUp()
139 ops_.set_stored_is_device_unlocked(false); in SetUp()
153 ops_.set_expected_public_key( in SetUp()
256 ops_.avb_ab_ops()->write_ab_metadata(ops_.avb_ab_ops(), &data)); in SetMD()
259 ops_.set_stored_rollback_indexes(stored_rollback_indexes); in SetMD()
267 FakeAvbOps ops_; member in avb::AvbABFlowTest
280 ops_.avb_ab_ops()->read_ab_metadata(ops_.avb_ab_ops(), &data)); \
287 EXPECT_EQ(stored_rollback_indexes, ops_.get_stored_rollback_indexes()); \
296 EXPECT_EQ(AVB_IO_RESULT_OK, avb_ab_data_read(ops_.avb_ab_ops(), &loaded)); in TEST_F()
[all …]
Davb_atx_slot_verify_unittest.cc60 ops_.set_partition_dir(testdir_); in SetUp()
61 ops_.set_delegate(this); in SetUp()
62 ops_.set_permanent_attributes(attributes_); in SetUp()
63 ops_.set_stored_is_device_unlocked(false); in SetUp()
87 return ops_.write_rollback_index(ops, rollback_index_slot, rollback_index); in write_rollback_index()
93 return ops_.set_key_version(rollback_index_location, key_version); in set_key_version()
97 return ops_.get_random(num_bytes, output); in get_random()
101 ops_.set_stored_rollback_indexes( in RunSlotVerify()
114 ops_.set_expected_public_key( in RunSlotVerify()
119 avb_atx_slot_verify(ops_.avb_atx_ops(), in RunSlotVerify()
[all …]
Davb_atx_validate_unittest.cc96 ops_.set_delegate(this); in SetUp()
97 ops_.set_permanent_attributes(attributes_); in SetUp()
98 ops_.set_stored_rollback_indexes( in SetUp()
148 return ops_.read_rollback_index( in read_rollback_index()
200 return ops_.read_permanent_attributes(attributes); in read_permanent_attributes()
208 return ops_.read_permanent_attributes_hash(hash); in read_permanent_attributes_hash()
213 ops_.set_key_version(rollback_index_location, key_version); in set_key_version()
224 return ops_.get_random(num_bytes, output); in get_random()
230 ops_.avb_ops(), in Validate()
240 ops_.avb_atx_ops(), &unlock_credential_, is_trusted); in ValidateUnlock()
[all …]
Dfake_avb_ops.h331 return ops_.read_from_partition( in read_from_partition()
340 return ops_.get_preloaded_partition( in get_preloaded_partition()
348 return ops_.write_to_partition(partition, offset, num_bytes, buffer); in write_to_partition()
357 return ops_.validate_vbmeta_public_key(ops, in validate_vbmeta_public_key()
374 return ops_.validate_public_key_for_partition(ops, in validate_public_key_for_partition()
387 return ops_.read_rollback_index( in read_rollback_index()
394 return ops_.write_rollback_index(ops, rollback_index_slot, rollback_index); in write_rollback_index()
399 return ops_.read_is_device_unlocked(ops, out_is_device_unlocked); in read_is_device_unlocked()
406 return ops_.get_unique_guid_for_partition( in get_unique_guid_for_partition()
413 return ops_.get_size_of_partition(ops, partition, out_size); in get_size_of_partition()
[all …]
Davb_aftl_verify_unittest.cc58 ops_.set_delegate(this); in SetUp()
59 ops_.set_partition_dir(base::FilePath("test/data")); in SetUp()
129 aftl_slot_verify(ops_.avb_ops(), asv_test_data_, key_bytes_, key_size_); in TEST_F()
136 aftl_slot_verify(ops_.avb_ops(), asv_test_data_, key_bytes_, key_size_); in TEST_F()
143 aftl_slot_verify(ops_.avb_ops(), asv_test_data_, key_bytes_, key_size_); in TEST_F()
Davbtool_unittest.cc50 ops_.set_partition_dir(testdir_); in SetUp()
51 ops_.set_stored_rollback_indexes({{0, 0}, {1, 0}, {2, 0}, {3, 0}}); in SetUp()
52 ops_.set_stored_is_device_unlocked(false); in SetUp()
61 FakeAvbOps ops_; member in avb::AvbToolTest
2473 ops_.avb_ops()->write_to_partition(ops_.avb_ops(), in TEST_F()
2657 ops_.avb_ops()->write_to_partition(ops_.avb_ops(), in TEST_F()
2675 ops_.avb_ops()->write_to_partition(ops_.avb_ops(), in TEST_F()
/external/grpc-grpc/include/grpcpp/impl/codegen/
Dcallback_common.h69 : call_(call), func_(std::move(f)), ops_(ops) { in CallbackWithStatusTag()
87 CompletionQueueTag* ops_; variable
95 void* ignored = ops_; in Run()
97 GPR_CODEGEN_ASSERT(ops_->FinalizeResult(&ignored, &ok)); in Run()
98 GPR_CODEGEN_ASSERT(ignored == ops_); in Run()
126 : call_(call), func_(std::move(f)), ops_(ops) { in CallbackWithSuccessTag()
131 CompletionQueueTag* ops() { return ops_; } in ops()
141 CompletionQueueTag* ops_; variable
148 void* ignored = ops_; in Run()
150 GPR_CODEGEN_ASSERT(ops_->FinalizeResult(&ignored, &new_ok)); in Run()
[all …]
/external/tensorflow/tensorflow/core/api_def/
Dapi_test.cc199 OpRegistry::Global()->Export(false, &ops_); in BaseApiTest()
205 OpList ops_; member in tensorflow::BaseApiTest
212 for (const auto& op : ops_.op()) { in TEST_F()
225 TestAllApiDefsHaveCorrespondingOp(ops_, api_defs_map_); in TEST_F()
241 for (const auto& op : ops_.op()) { in TEST_F()
266 TestAllApiDefInputArgsAreValid(ops_, api_defs_map_); in TEST_F()
272 TestAllApiDefOutputArgsAreValid(ops_, api_defs_map_); in TEST_F()
278 TestAllApiDefAttributeNamesAreValid(ops_, api_defs_map_); in TEST_F()
295 OpRegistry::Global()->Export(false, &ops_); in PythonApiTest()
301 OpList ops_; member in tensorflow::PythonApiTest
[all …]
/external/tensorflow/tensorflow/core/common_runtime/
Dinput_colocation_exemption_registry.cc31 auto it = ops_.find(op); in Register()
32 if (it != ops_.end()) { in Register()
36 ops_.insert(op); in Register()
Dinput_colocation_exemption_registry.h43 const gtl::FlatSet<string>& Get() { return ops_; } in Get()
49 gtl::FlatSet<string> ops_;
/external/tensorflow/tensorflow/compiler/tf2xla/
Dxla_op_registry.cc192 for (auto& ops : registry.ops_) { in RegisterCompilationKernels()
344 auto op_iter = registry.ops_.find(k->op()); in DeviceKernels()
345 CHECK(op_iter != registry.ops_.end() && !op_iter->second.empty()); in DeviceKernels()
361 for (const auto& pair : registry.ops_) { in GetAllRegisteredOps()
392 auto it = registry.ops_.find(op); in CompileTimeConstantInputs()
393 if (it == registry.ops_.end() || it->second.empty()) { in CompileTimeConstantInputs()
436 auto it = registry.ops_.find(op); in IsMetadataOp()
437 if (it == registry.ops_.end() || it->second.empty()) { in IsMetadataOp()
559 auto& existing_ops = registry.ops_[registration->name]; in XlaOpRegistrar()
Dxla_op_registry.h294 std::unordered_map<string, std::vector<std::unique_ptr<OpRegistration>>> ops_
/external/tensorflow/tensorflow/python/grappler/
Dcost_analyzer.cc131 ops_.push_back(op.second); in SortOpsByTime()
138 std::stable_sort(ops_.begin(), ops_.end(), CompareByTime()); in SortOpsByTime()
159 for (const auto& op : ops_) { in AnalyzeCosts()
207 for (const auto& op : ops_) { in PrintAnalysis()
Dcost_analyzer.h73 std::vector<OpPerfSummary> ops_; variable
/external/tensorflow/tensorflow/lite/experimental/writer/
Doption_writer_generator.cc115 const std::vector<std::string>& ops() const { return ops_; } in ops()
134 if (strlen(*curr) != 0) ops_.push_back(*curr); in BuildOpList()
199 for (auto op_name : ops_) { in BuildOpToOptionMap()
248 std::vector<std::string> ops_; member in tflite::OpOptionData
/external/tensorflow/tensorflow/core/graph/
Dgraph.cc372 : ops_(ops, FunctionDefLibrary()), in Graph()
405 Status s = ops_.AddLibrary(flib_def); in Graph()
429 status->Update(ops_.LookUp(node_def.op(), &op_reg_data)); in AddNode()
459 TF_CHECK_OK(ops_.LookUpOpDef(node->type_string(), &op_def)); in CopyNode()
636 return ops_.AddLibrary(fdef_lib); in AddFunctionLibrary()
666 *graph_def->mutable_library() = ops_.ToProto(); in ToGraphDefSubRange()
Dgraph.h633 const OpRegistryInterface* op_registry() const { return &ops_; } in op_registry()
634 const FunctionLibraryDefinition& flib_def() const { return ops_; } in flib_def()
694 FunctionLibraryDefinition ops_; variable