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

Function TEST

tensorflow/lite/testing/tf_driver_test.cc:45–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43};
44
45TEST(TfDriverTest, ReadingAndWrintingValues) {
46 TestDriver driver;
47 ASSERT_EQ(driver.WriteAndReadBack(tensorflow::DT_FLOAT, {1, 2, 2},
48 "0.10,0.20,0.30,0.40"),
49 "0.100000001,0.200000003,0.300000012,0.400000006");
50 ASSERT_EQ(driver.WriteAndReadBack(tensorflow::DT_INT32, {1, 2, 2},
51 "10,40,100,-100"),
52 "10,40,100,-100");
53 ASSERT_EQ(driver.WriteAndReadBack(tensorflow::DT_UINT8, {1, 2, 2},
54 "48,49,121, 122"),
55 "0,1,y,z");
56}
57
58TEST(TfDriverTest, ReadingAndWrintingValuesStrings) {
59 TestDriver driver;

Callers

nothing calls this directly

Calls 15

string_viewClass · 0.85
WriteAndReadBackMethod · 0.80
AddStringMethod · 0.80
GetOutputsMethod · 0.80
dataMethod · 0.45
sizeMethod · 0.45
WriteToBufferMethod · 0.45
LoadModelMethod · 0.45
IsValidMethod · 0.45
GetInputsMethod · 0.45
ReshapeTensorMethod · 0.45
SetInputMethod · 0.45

Tested by

no test coverage detected