MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CheckPickDeviceHasError

Function CheckPickDeviceHasError

tensorflow/compiler/jit/device_util_test.cc:52–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50}
51
52void CheckPickDeviceHasError(bool allow_mixing_unknown_and_cpu,
53 absl::Span<const absl::string_view> inputs) {
54 string result;
55 EXPECT_FALSE(
56 PickDeviceHelper(allow_mixing_unknown_and_cpu, inputs, &result).ok());
57}
58
59const char* kCPU0 = "/job:localhost/replica:0/task:0/device:CPU:0";
60const char* kGPU0 = "/job:localhost/replica:0/task:0/device:GPU:0";

Callers 1

TESTFunction · 0.85

Calls 2

PickDeviceHelperFunction · 0.85
okMethod · 0.45

Tested by

no test coverage detected