1 // Check printing with --mlir-elide-resource-strings-if-larger elides printing large resources
3 // RUN: mlir-opt %s --mlir-elide-resource-strings-if-larger=20| FileCheck %s
5 // To ensure we print the resource keys, have reference to them
6 // CHECK: attr = dense_resource<blob1> : tensor<3xi64>
7 "test.blob1op"() {attr = dense_resource<blob1> : tensor<3xi64> } : () -> ()
9 // CHECK-NEXT: attr = dense_resource<blob2> : tensor<3xi64>
10 "test.blob2op"() {attr = dense_resource<blob2> : tensor<3xi64> } : () -> ()
13 // CHECK-NEXT: external_resources: {
14 // CHECK-NEXT: external: {
15 // CHECK-NEXT: bool: true,
16 // CHECK-NEXT: string: "\22string\22"
18 // CHECK-NEXT: other_stuff: {
19 // CHECK-NEXT: bool: true
27 blob1: "0x08000000010000000000000002000000000000000300000000000000",
28 blob2: "0x08000000040000000000000005000000000000000600000000000000"
33 blob: "0x08000000010000000000000002000000000000000300000000000000",
35 string: "\"string\"" // with escape characters