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

Function TEST

tensorflow/cc/ops/const_op_test.cc:51–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49} // namespace
50
51TEST(ConstOpTest, Basic) {
52 Scope root = Scope::NewRootScope();
53 auto c = ops::Const(root, 42.0f);
54 TF_EXPECT_OK(root.status());
55 EXPECT_EQ(c.op().output_type(0), DT_FLOAT);
56 ExpectNodeEqual<float>(c.node(), {42.0f}, {});
57}
58
59TEST(ConstOpTest, MultiDim) {
60 Scope root = Scope::NewRootScope();

Callers

nothing calls this directly

Calls 14

ExpectTypeAndShapeFunction · 0.85
ConstFromProtoFunction · 0.85
WithOpNameMethod · 0.80
NewSubScopeMethod · 0.80
ConstFunction · 0.70
nameMethod · 0.65
TensorShapeClass · 0.50
statusMethod · 0.45
output_typeMethod · 0.45
opMethod · 0.45
nodeMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected