summaryrefslogtreecommitdiffstats
path: root/mlir/test/Examples/Toy/Ch2
diff options
context:
space:
mode:
authorRiver Riddle <riverriddle@google.com>2019-06-25 16:06:13 -0700
committerA. Unique TensorFlower <gardener@tensorflow.org>2019-06-25 16:06:58 -0700
commit4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c (patch)
tree04fefb7f46510e3d39bdb61d5bdcab903810f908 /mlir/test/Examples/Toy/Ch2
parent1df5f3159e538fdc12c451f09f3f879ca0200d66 (diff)
downloadbcm5719-llvm-4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c.tar.gz
bcm5719-llvm-4842b2d42e95ff4b5a8425ec7108c9e4e90e8b6c.zip
Modify the syntax of the the ElementsAttrs to print the type as a colon type.
This is the standard syntax for types on operations, and is also already used by IntegerAttr and FloatAttr. Example: dense<5> : tensor<i32> dense<[3]> : tensor<1xi32> PiperOrigin-RevId: 255069157
Diffstat (limited to 'mlir/test/Examples/Toy/Ch2')
-rw-r--r--mlir/test/Examples/Toy/Ch2/codegen.toy4
1 files changed, 2 insertions, 2 deletions
diff --git a/mlir/test/Examples/Toy/Ch2/codegen.toy b/mlir/test/Examples/Toy/Ch2/codegen.toy
index e2ff0fefa10..23234cecc8c 100644
--- a/mlir/test/Examples/Toy/Ch2/codegen.toy
+++ b/mlir/test/Examples/Toy/Ch2/codegen.toy
@@ -21,9 +21,9 @@ def main() {
# CHECK-NEXT: }
# CHECK-LABEL: func @main() {
-# CHECK-NEXT: %0 = "toy.constant"() {value: dense<tensor<2x3xf64>, {{\[\[}}1.000000e+00, 2.000000e+00, 3.000000e+00], [4.000000e+00, 5.000000e+00, 6.000000e+00]]>} : () -> !toy.array<2, 3>
+# CHECK-NEXT: %0 = "toy.constant"() {value: dense<{{\[\[}}1.000000e+00, 2.000000e+00, 3.000000e+00], [4.000000e+00, 5.000000e+00, 6.000000e+00]]> : tensor<2x3xf64>} : () -> !toy.array<2, 3>
# CHECK-NEXT: %1 = "toy.reshape"(%0) : (!toy.array<2, 3>) -> !toy.array<2, 3>
-# CHECK-NEXT: %2 = "toy.constant"() {value: dense<tensor<6xf64>, [1.000000e+00, 2.000000e+00, 3.000000e+00, 4.000000e+00, 5.000000e+00, 6.000000e+00]>} : () -> !toy.array<6>
+# CHECK-NEXT: %2 = "toy.constant"() {value: dense<[1.000000e+00, 2.000000e+00, 3.000000e+00, 4.000000e+00, 5.000000e+00, 6.000000e+00]> : tensor<6xf64>} : () -> !toy.array<6>
# CHECK-NEXT: %3 = "toy.reshape"(%2) : (!toy.array<6>) -> !toy.array<2, 3>
# CHECK-NEXT: %4 = "toy.generic_call"(%1, %3) {callee: "multiply_transpose"} : (!toy.array<2, 3>, !toy.array<2, 3>) -> !toy.array
# CHECK-NEXT: %5 = "toy.generic_call"(%3, %1) {callee: "multiply_transpose"} : (!toy.array<2, 3>, !toy.array<2, 3>) -> !toy.array
OpenPOWER on IntegriCloud