Home
last modified time | relevance | path

Searched refs:FakeDevice (Results 1 – 12 of 12) sorted by relevance

/external/tensorflow/tensorflow/tools/optimization/
Doptimization_pass_runner.cc50 class FakeDevice : public Device { class
52 explicit FakeDevice(const DeviceAttributes& device_attributes) in FakeDevice() function in tensorflow::__anondfd7505e0111::FakeDevice
60 Status FakeDevice::Sync() { in Sync()
64 std::unique_ptr<Device> FakeDevice::Make(const string& name, in Make()
69 return std::unique_ptr<Device>(new FakeDevice(device_attributes)); in Make()
163 devices_.push_back(FakeDevice::Make(name, type)); in AddDevice()
/external/skqp/tests/
DLayerDrawLooperTest.cpp28 class FakeDevice : public SkBitmapDevice { class
30 FakeDevice() : INHERITED(make_bm(100, 100), SkSurfaceProps(0, kUnknown_SkPixelGeometry), in FakeDevice() function in FakeDevice
58 FakeDevice device; in test_frontToBack()
97 FakeDevice device; in test_backToFront()
136 FakeDevice device; in test_mixed()
/external/skia/tests/
DLayerDrawLooperTest.cpp28 class FakeDevice : public SkBitmapDevice { class
30 FakeDevice() : INHERITED(make_bm(100, 100), SkSurfaceProps(0, kUnknown_SkPixelGeometry), in FakeDevice() function in FakeDevice
58 FakeDevice device; in test_frontToBack()
97 FakeDevice device; in test_backToFront()
136 FakeDevice device; in test_mixed()
/external/tensorflow/tensorflow/core/common_runtime/
Ddevice_set_test.cc28 class FakeDevice : public Device { in Dev() class
30 explicit FakeDevice(const DeviceAttributes& attr) : Device(nullptr, attr) {} in Dev() function in tensorflow::__anonf0ab42df0111::Dev::FakeDevice
37 return new FakeDevice(attr); in Dev()
Dplacer_test.cc82 class FakeDevice : public Device { class
84 explicit FakeDevice(const DeviceAttributes& device_attributes) in FakeDevice() function in tensorflow::__anon5fafcd9b0111::FakeDevice
96 return std::unique_ptr<Device>(new FakeDevice(device_attributes)); in MakeCPU()
103 return std::unique_ptr<Device>(new FakeDevice(device_attributes)); in MakeGPU()
207 local_devices_.emplace_back(FakeDevice::MakeCPU( in PlacerTest()
211 local_devices_.emplace_back(FakeDevice::MakeGPU( in PlacerTest()
1263 FakeDevice::MakeGPU("/job:b/replica:0/task:0/device:fakegpu:0")); in TEST_F()
1266 FakeDevice::MakeCPU("/job:b/replica:0/task:1/device:fakecpu:0")); in TEST_F()
1364 FakeDevice::MakeCPU("/job:a/replica:0/task:0/device:fakecpu:0")); in TEST_F()
Dconstant_folding_test.cc96 class FakeDevice : public Device { class
98 explicit FakeDevice(const DeviceAttributes& device_attributes) in FakeDevice() function in tensorflow::__anond28d22700111::FakeDevice
110 return std::unique_ptr<Device>(new FakeDevice(device_attributes)); in Make()
652 FakeDevice::Make("/job:tpu_worker/replica:0/task:0/device:GPU:0", in TEST_F()
/external/tensorflow/tensorflow/core/distributed_runtime/
Dsession_mgr_test.cc26 class FakeDevice : public Device { class
28 explicit FakeDevice(const DeviceAttributes& device_attributes) in FakeDevice() function in tensorflow::FakeDevice
40 return std::unique_ptr<Device>(new FakeDevice(device_attributes)); in MakeCPU()
50 FakeDevice::MakeCPU("/job:mnist/replica:0/task:0/device:fakecpu:0")); in SessionMgrTest()
Ddevice_resolver_distributed_test.cc47 class FakeDevice : public Device { in NewDevice() class
49 explicit FakeDevice(const DeviceAttributes& attr) : Device(nullptr, attr) {} in NewDevice() function in tensorflow::__anon0903cdc10111::NewDevice::FakeDevice
57 return absl::make_unique<FakeDevice>(attr); in NewDevice()
Dcollective_rma_distributed_test.cc46 class FakeDevice : public Device { in NewDevice() class
48 explicit FakeDevice(const DeviceAttributes& attr) : Device(nullptr, attr) {} in NewDevice() function in tensorflow::__anon7e5c43490111::NewDevice::FakeDevice
56 return absl::make_unique<FakeDevice>(attr); in NewDevice()
Dcollective_param_resolver_distributed_test.cc34 class FakeDevice : public Device { in NewDevice() class
36 explicit FakeDevice(const DeviceAttributes& attr) : Device(nullptr, attr) {} in NewDevice() function in tensorflow::__anonc2f8b6eb0111::NewDevice::FakeDevice
44 return absl::make_unique<FakeDevice>(attr); in NewDevice()
/external/tensorflow/tensorflow/compiler/jit/
Dincrease_dynamism_for_auto_jit_pass_test.cc42 class FakeDevice : public Device { class
44 explicit FakeDevice(const DeviceAttributes& device_attributes) in FakeDevice() function in tensorflow::__anon624fd3d60111::FakeDevice
55 return absl::make_unique<FakeDevice>(device_attributes); in Make()
65 devices.push_back(FakeDevice::Make(kDeviceName, DEVICE_GPU)); in IncreaseDynamismForAutoJit()
66 devices.push_back(FakeDevice::Make(kHostName, DEVICE_CPU)); in IncreaseDynamismForAutoJit()
/external/tensorflow/tensorflow/core/grappler/optimizers/
Dfunction_optimizer.cc136 class FakeDevice : public Device { class
138 FakeDevice(Env* env, const string& device) : Device(env, attr(device)) {} in FakeDevice() function in tensorflow::grappler::__anon35816ea30111::FakeDevice
139 explicit FakeDevice(const string& device) : FakeDevice(nullptr, device) {} in FakeDevice() function in tensorflow::grappler::__anon35816ea30111::FakeDevice
317 auto device = absl::make_unique<FakeDevice>(name); in devices()
413 devices.push_back(absl::make_unique<FakeDevice>(env, "/device:CPU:0")); in InitializeFunctionLibraryRuntime()