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

Function TEST_F

tensorflow/cc/gradients/data_flow_grad_test.cc:49–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47};
48
49TEST_F(DataFlowGradTest, DynamicPartitionGrad) {
50 TensorShape data_shape({2, 3, 2});
51 auto data = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(data_shape));
52 auto partitions = Const(scope_, {{2, 1, 0}, {1, 2, 0}});
53 auto y = DynamicPartition(scope_, data, partitions, 3);
54 TensorShape partition_shape({2, 2});
55 RunTest({data}, {data_shape}, y.outputs,
56 {partition_shape, partition_shape, partition_shape});
57}
58
59TEST_F(DataFlowGradTest, DynamicStitchGrad) {
60 TensorShape d1_shape({2});

Callers

nothing calls this directly

Calls 6

DynamicStitchFunction · 0.85
PlaceholderFunction · 0.50
ShapeClass · 0.50
ConstFunction · 0.50
DynamicPartitionFunction · 0.50
RunTestFunction · 0.50

Tested by

no test coverage detected