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

Function TEST

tensorflow/lite/kernels/fill_test.cc:48–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

46};
47
48TEST(FillOpModel, FillInt32) {
49 FillOpModel m({TensorType_INT32, {2}}, {TensorType_INT32});
50 m.PopulateTensor<int32_t>(m.input1(), {2, 3});
51 m.PopulateTensor<int32_t>(m.input2(), {-11});
52 m.Invoke();
53 EXPECT_THAT(m.ExtractVector<int32_t>(m.output()),
54 ElementsAreArray({-11, -11, -11, -11, -11, -11}));
55 EXPECT_THAT(m.GetTensorShape(m.output()), ElementsAreArray({2, 3}));
56}
57
58TEST(FillOpModel, FillInt64) {
59 FillOpModel m({TensorType_INT32, {2}}, {TensorType_INT64});

Callers

nothing calls this directly

Calls 6

IsEmptyFunction · 0.85
outputMethod · 0.65
input1Method · 0.45
input2Method · 0.45
InvokeMethod · 0.45
GetTensorShapeMethod · 0.45

Tested by

no test coverage detected