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

Function TEST

tensorflow/core/ops/ragged_to_dense_util_test.cc:30–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28namespace {
29
30TEST(CombineRaggedTensorToTensorShapes, UnknownShapeUnknownValue) {
31 TensorShapeProto shape_proto;
32 shape_proto.set_unknown_rank(true);
33 TensorShapeProto value_shape_proto;
34 value_shape_proto.set_unknown_rank(true);
35 int ragged_rank = 1;
36
37 TensorShapeProto actual_output_shape_proto;
38 TF_ASSERT_OK(CombineRaggedTensorToTensorShapes(
39 ragged_rank, shape_proto, value_shape_proto, &actual_output_shape_proto));
40
41 EXPECT_EQ(true, actual_output_shape_proto.unknown_rank());
42}
43
44TEST(CombineRaggedTensorToTensorShapes, UnknownShape) {
45 TensorShapeProto shape_proto;

Callers

nothing calls this directly

Calls 10

RowPartitionTypeToStringFunction · 0.85
unknown_rankMethod · 0.80
set_sizeMethod · 0.45
dim_sizeMethod · 0.45
sizeMethod · 0.45
dimMethod · 0.45
okMethod · 0.45

Tested by

no test coverage detected