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

Function TEST

tensorflow/compiler/mlir/tensorflow/utils/convert_tensor_test.cc:29–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

27namespace {
28
29TEST(ConvertTypeToTensorTypeTest, UnrankedTensorType) {
30 mlir::MLIRContext context;
31 mlir::Builder b(&context);
32
33 PartialTensorShape output_shape =
34 ConvertTypeToTensorShape(mlir::UnrankedTensorType::get(b.getF32Type()));
35 EXPECT_TRUE(output_shape.IsIdenticalTo(PartialTensorShape()));
36}
37
38TEST(ConvertTypeToTensorTypeTest, NonFullyDefinedRankedTensorType) {
39 mlir::MLIRContext context;

Callers

nothing calls this directly

Calls 5

ConvertTypeToTensorShapeFunction · 0.85
PartialTensorShapeClass · 0.85
getFunction · 0.50
TensorShapeClass · 0.50
IsIdenticalToMethod · 0.45

Tested by

no test coverage detected