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

Function TEST

tensorflow/contrib/periodic_resample/ops/array_ops_test.cc:25–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23namespace tensorflow {
24
25TEST(ArrayOpsTest, PeriodicResample_ShapeFn) {
26 ShapeInferenceTestOp op("PeriodicResample");
27 // Case 1: output shape can be fully inferreed.
28 PartialTensorShape shape({4, 4, -1});
29 TensorShapeProto shape_proto;
30 shape.AsProto(&shape_proto);
31
32 TF_ASSERT_OK(NodeDefBuilder("test", "PeriodicResample")
33 .Input({"values", 0, DT_INT32})
34 .Attr("shape", shape_proto)
35 .Finalize(&op.node_def));
36 INFER_OK(op, "[2,2,4]", "[4,4,1]");
37 // Case 2: output shape can not be inferred - report desired shape.
38 INFER_OK(op, "[2,2,?]", "[4,4,?]");
39}
40
41} // end namespace tensorflow

Callers

nothing calls this directly

Calls 5

NodeDefBuilderClass · 0.85
AsProtoMethod · 0.45
FinalizeMethod · 0.45
AttrMethod · 0.45
InputMethod · 0.45

Tested by

no test coverage detected