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

Function TEST_F

tensorflow/cc/gradients/array_grad_test.cc:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54};
55
56TEST_F(ArrayGradTest, StackGrad_Axis0) {
57 TensorShape x_shape({1, 2, 3});
58 std::vector<Output> xs;
59 xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)));
60 xs.push_back(Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)));
61 auto y = Stack(scope_, xs, Stack::Axis(0));
62 TensorShape y_shape({2, 1, 2, 3});
63 RunTest(xs, {x_shape, x_shape}, {y}, {y_shape});
64}
65
66TEST_F(ArrayGradTest, StackGrad_Axis1) {
67 TensorShape x_shape({1, 2, 3});

Callers

nothing calls this directly

Calls 15

StackClass · 0.85
MatrixBandPartFunction · 0.85
ScatterNdFunction · 0.85
ScatterNdNonAliasingAddFunction · 0.85
GatherV2Function · 0.85
MirrorPadGradFunction · 0.70
PlaceholderFunction · 0.50
ShapeClass · 0.50
AxisClass · 0.50
RunTestFunction · 0.50
TensorShapeClass · 0.50
IdentityFunction · 0.50

Tested by

no test coverage detected