Home
last modified time | relevance | path

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

12

/external/tensorflow/tensorflow/core/grappler/optimizers/
Dfunction_optimizer_test.cc33 constexpr char kDevice[] = "/job:localhost/replica:0/task:0/device:CPU:0"; variable
46 {NDef("x", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST_F()
47 NDef("y", "XTimesTwo", {"x"}, {{"T", DT_FLOAT}}, kDevice), in TEST_F()
48 NDef("z", "Identity", {"y"}, {{"T", DT_FLOAT}}, kDevice)}, in TEST_F()
71 for (NodeDef& node : *expected.mutable_node()) node.set_device(kDevice); in TEST_F()
115 {NDef("x", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST_F()
116 NDef("y", "XTimesTwo", {"x"}, {}, kDevice), in TEST_F()
117 NDef("z", "Identity", {"y"}, {{"T", DT_FLOAT}}, kDevice)}, in TEST_F()
165 {NDef("x", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST_F()
166 NDef("y", "Exp_func", {"x"}, {}, kDevice), in TEST_F()
[all …]
Dmeta_optimizer_test.cc43 constexpr char kDevice[] = "/device:CPU:0"; variable
135 TrivialTestGraphInputYielder fake_input(4, 1, 10, false, {kDevice}); in TEST_F()
154 TrivialTestGraphInputYielder fake_input(4, 1, 10, false, {kDevice}); in TEST_F()
175 TrivialTestGraphInputYielder fake_input(4, 1, 10, false, {kDevice}); in TEST_F()
222 TrivialTestGraphInputYielder fake_input(4, 1, 10, false, {kDevice}); in TEST_F()
239 TrivialTestGraphInputYielder fake_input(4, 1, 10, false, {kDevice}); in TEST_F()
312 {NDef("a", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST_F()
313 NDef("b", "Placeholder", {}, {{"dtype", DT_INT32}}, kDevice), in TEST_F()
315 NDef("square", "MySquare", {"a"}, {{"T", DT_FLOAT}}, kDevice), in TEST_F()
316 NDef("quadratic", "MyQuadratic", {"b"}, {{"T", DT_INT32}}, kDevice), in TEST_F()
[all …]
/external/dynamic_depth/internal/dynamic_depth/
Dconst.cc13 constexpr char kDevice[] = "Device"; variable
46 const char* DynamicDepthConst::Device() { return kDevice; } in Device()
82 LOG(WARNING) << kPose << " maps to " << kDevice << ", " << kCamera in Namespace()
101 return kDevice; in Namespace()
107 return kDevice; in Namespace()
/external/skia/gm/
Dfp_sample_chaining.cpp152 kDevice, enumerator
163 case kDevice: in wrap()
231 draw({ kDevice, kUniform }); // Same as identity (uniform applied *before*
233 draw({ kExplicit, kUniform, kDevice }); // Scale Y by 2x and translate up by 16px
234 draw({ kDevice, kExplicit, kUniform, kDevice }); // Identity, again.
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/transforms/
Dtarget_annotation.cc96 SetAnnotation(op, kDevice, device, builder); in SetTargetAnnotation()
105 SetAnnotation(op, kDevice, GetHardwareName(hardware), builder); in SetTargetAnnotation()
115 SetAnnotation(op, kDevice, "CPU", builder); in SetTargetAnnotation()
Dget_alternative_subgraph.cc236 kDevice, builder->getStringAttr(target_device_inference_type.hardware)); in GetAlternativeViewForSpec()
260 op->setAttr(kDevice, builder->getStringAttr( in GetAlternativeViewForSpec()
290 auto device_attr = func->getAttrOfType<StringAttr>(kDevice); in runOnOperation()
Draise_target_subgraphs.cc221 kDevice, in BuildFuncOp()
308 call_op->setAttr(kDevice, in ExtractSubgraphToFunc()
Dpick_subgraphs.cc443 kDevice, in RewireSubgraphs()
/external/tensorflow/tensorflow/core/grappler/
Dmutable_graph_view_test.cc213 constexpr char kDevice[] = "/device:foo:0"; in TEST() local
226 graph.UpdateNode("bar_2", "IdentityN", kDevice, {{"T", list_value}})); in TEST()
229 CheckNode(graph, "bar_2", "IdentityN", kDevice, {{"T", list_value}}, in TEST()
241 constexpr char kDevice[] = "/device:foo:0"; in TEST() local
251 TF_EXPECT_OK(graph.UpdateNode("bar_2", "NotImportant", kDevice, {})); in TEST()
254 CheckNode(graph, "bar_2", "NotImportant", kDevice, {}, {"bar_1:1"}, in TEST()
265 constexpr char kDevice[] = "/device:foo:0"; in TEST() local
273 TF_EXPECT_OK(graph.UpdateNode("foo", "Switch", kDevice, {})); in TEST()
275 CheckNode(graph, "foo", "Switch", kDevice, {}, {}, {"bar"}); in TEST()
282 constexpr char kDevice[] = "/device:foo:0"; in TEST() local
[all …]
/external/tensorflow/tensorflow/compiler/mlir/tfrt/transforms/
Dremove_device_attribute.cc31 constexpr const char* kDevice = "device"; variable
57 if (attr.first != kDevice) { in runOnOperation()
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/common/
Dtargets.h35 constexpr char kDevice[] = "tac.device"; variable
90 auto device = op->getAttrOfType<StringAttr>(kDevice); in GetTargetAnnotation()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_cudamalloc_allocator.h40 return AllocatorMemoryType::kDevice; in GetMemoryType()
Dgpu_cudamallocasync_allocator.h97 return AllocatorMemoryType::kDevice; in GetMemoryType()
/external/tensorflow/tensorflow/core/common_runtime/device/
Ddevice_mem_allocator.h74 return AllocatorMemoryType::kDevice; in GetMemoryType()
/external/perfetto/src/traced/probes/ps/
Dprocess_stats_data_source_unittest.cc339 const char kDevice[] = "/dev/dummy"; in TEST_F() local
356 EXPECT_EQ(symlink(kDevice, link.c_str()), 0) in TEST_F()
357 << "symlink('" << kDevice << "','" << link.c_str() << "') failed"; in TEST_F()
424 ASSERT_EQ(fd_path.path(), kDevice); in TEST_F()
/external/tensorflow/tensorflow/core/framework/
Dfunction_test.cc1452 constexpr char kDevice[] = "/device:CPU:0"; in TEST() local
1456 NDef("a", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST()
1457 NDef("b", "Placeholder", {}, {{"dtype", DT_FLOAT}}, kDevice), in TEST()
1458 NDef("x", "Func1", {"a", "b"}, {{"T", DT_FLOAT}}, kDevice), in TEST()
1463 kDevice), in TEST()
1464 NDef("z", "Func4", {"a", "b"}, {{"T", DT_FLOAT}}, kDevice), in TEST()
Dallocator.h104 kDevice = 1, // Memory on device. enumerator
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_utils.cc344 static const char* const kDevice = "device: which device is placed on."; variable
404 helps.push_back(kDevice); in QueryDoc()
/external/cronet/net/base/
Dnetwork_interfaces_fuchsia.cc124 case fuchsia::net::interfaces::DeviceClass::kDevice: in ConvertConnectionType()
/external/tensorflow/tensorflow/compiler/xla/stream_executor/cuda/
Dcuda_blas_lt.h85 kDevice, enumerator
Dcuda_blas_lt.cc88 case BlasLt::PointerMode::kDevice: in AsCublasLtPointerMode()
/external/tensorflow/tensorflow/compiler/mlir/lite/experimental/tac/
Dexecution_metadata_exporter.cc68 auto device = op->getAttrOfType<mlir::StringAttr>(mlir::TFL::tac::kDevice); in GetDeviceName()
/external/tensorflow/tensorflow/core/util/
Ddevice_name_utils_test.cc37 enum NamePart { kJob = 0x01, kReplica = 0x02, kTask = 0x04, kDevice = 0x08 }; enumerator
54 if (parts_to_test & kDevice) { in RoundTripPartialName()
/external/tensorflow/tensorflow/compiler/xla/stream_executor/gpu/
Dgpu_driver.h34 enum class MemorySpace { kHost, kDevice }; enumerator
/external/tensorflow/tensorflow/stream_executor/rocm/
Drocm_driver.cc137 case MemorySpace::kDevice: in MemorySpaceString()
1040 return MemorySpace::kDevice; in GetPointerMemorySpace()

12