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

Function TEST

tensorflow/core/ops/array_ops_test.cc:30–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace tensorflow {
29
30TEST(ArrayOpsTest, UnravelIndex_ShapeFn) {
31 ShapeInferenceTestOp op("UnravelIndex");
32
33 INFER_OK(op, "?;?", "?");
34
35 INFER_OK(op, "[];[?]", "[d1_0]");
36
37 INFER_OK(op, "[4,5];[?]", "[d1_0,20]");
38 INFER_OK(op, "[2,3,4];[?]", "[d1_0,24]");
39 INFER_OK(op, "?;[?]", "?");
40 INFER_OK(op, "[?];[?]", "[d1_0,?]");
41
42 INFER_ERROR("Shape must be rank 1 but is rank 2", op, "?;[1,1]");
43}
44
45TEST(ArrayOpsTest, Pack_ShapeFn) {
46 ShapeInferenceTestOp op("Pack");

Callers

nothing calls this directly

Calls 15

NodeDefBuilderClass · 0.85
TensorShapeProtoClass · 0.85
construction_statusMethod · 0.80
AddNodeAttrFunction · 0.50
AsScalarFunction · 0.50
TensorShapeClass · 0.50
reserveMethod · 0.45
emplace_backMethod · 0.45
FinalizeMethod · 0.45
AttrMethod · 0.45
InputMethod · 0.45

Tested by

no test coverage detected