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

Function TEST

tensorflow/core/grappler/optimizers/evaluation_utils_test.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace grappler {
28
29TEST(EvaluationUtilsTest, DeviceSimple_BasicProperties) {
30 DeviceSimple dsimple;
31 ASSERT_TRUE(dsimple.has_eigen_cpu_device());
32 EXPECT_EQ(dsimple.eigen_cpu_device()->numThreads(), port::MaxParallelism());
33 const Eigen::ThreadPoolInterface* pool =
34 dsimple.eigen_cpu_device()->getPool();
35 ASSERT_NE(pool, nullptr);
36}
37
38TEST(EvaluationUtilsTest, DeviceSimple_MakeTensorFromProto) {
39 DeviceSimple dsimple;

Callers

nothing calls this directly

Calls 11

has_eigen_cpu_deviceMethod · 0.80
numThreadsMethod · 0.80
getPoolMethod · 0.80
AsProtoTensorContentMethod · 0.80
MaxParallelismFunction · 0.50
eigen_cpu_deviceMethod · 0.45
okMethod · 0.45
MakeTensorFromProtoMethod · 0.45
dtypeMethod · 0.45
shapeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected