- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 288 for mhlo (0.54 sec)
-
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/dot_general.h
namespace mlir { namespace odml { // Converts mhlo.dot_general to tfl.BatchMatMul. Reshape and Transpose ops will // be inserted to convert to well-formed matrix multiply; i.e., mhlo.dot_general // -> tfl.batch_matmul(mhlo.transpose(mhlo.reshape(operand)), ...). // Note: // 1) Reshape/transpose are inserted because tfl.BatchMatMul requires // size(contracting_dimensions) = 1 and size(output_dim) = 1, whereas // mhlo.dot_general has no such restriction.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Oct 04 19:00:01 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir
// CHECK-NEXT: %5 = "mhlo.slice"(%1) <{limit_indices = dense<2> : tensor<1xi64>, start_indices = dense<1> : tensor<1xi64>, strides = dense<1> : tensor<1xi64>}> : (tensor<4xi32>) -> tensor<1xi32> // CHECK-NEXT: %6 = mhlo.reshape %5 : (tensor<1xi32>) -> tensor<i32> // CHECK-NEXT: %7 = mhlo.convert %6 : tensor<i32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 15.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-binary-elementwise.mlir
func.return %0 : tensor<4xf32> } // CHECK-LABEL: func @mod // CHLO-LABEL: func @mod func.func @mod(%arg0: tensor<4xf32>, %arg1: tensor<4xf32>) -> tensor<4xf32> { // CHECK-NEXT: mhlo.remainder %arg0, %arg1 : tensor<4xf32> // CHLO: chlo.broadcast_remainder %0 = "tf.Mod"(%arg0, %arg1) : (tensor<4xf32>, tensor<4xf32>) -> tensor<4xf32> func.return %0 : tensor<4xf32> }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 18.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/tests/bridge/optimize.mlir
) -> tensor<?x?x8xi32> { // CHECK: %[[dot:.*]] = "mhlo.dot_general" // CHECK: %[[combined:.*]] = chlo.broadcast_add %[[zp_offset:.*]], %[[bias:.*]] // CHECK: %[[result:.*]] = chlo.broadcast_add %[[dot]], %[[combined]] // CHECK: return %[[result]] %0 = "mhlo.dot_general" (%lhs, %rhs) { dot_dimension_numbers = #mhlo.dot< lhs_batching_dimensions = [], rhs_batching_dimensions = [],
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Feb 24 02:26:47 UTC 2024 - 10.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/composite-lowering.mlir
%8 = mhlo.divide %7, %2 : tensor<64xf32> %9 = mhlo.floor %8 : tensor<64xf32> %10 = mhlo.convert %9 : (tensor<64xf32>) -> tensor<64xi32> %11 = mhlo.compare LT, %10, %1, SIGNED : (tensor<64xi32>, tensor<64xi32>) -> tensor<64xi1> %12 = mhlo.add %10, %0 : tensor<64xi32> %13 = mhlo.select %11, %12, %10 : tensor<64xi1>, tensor<64xi32> %14 = mhlo.reshape %13 : (tensor<64xi32>) -> tensor<64x1xi32>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 06 18:45:51 UTC 2024 - 32.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/passes.h
namespace mlir { namespace odml { // Creates a pass which unfuses MHLO batch norm inference op into arithmetic // ops. std::unique_ptr<Pass> createUnfuseBatchNormPass(); // Creates a pass which constant folds broadcast_in_dim op conditionally. std::unique_ptr<Pass> createFoldBroadcastPass(); // Creates a pass which fuses MHLO binary element-wise ops and convolution op. std::unique_ptr<Pass> createFuseConvolutionPass();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 21:59:06 UTC 2024 - 3.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tpu_sharding_identification.mlir
func.return } // CHECK-LABEL: func @func_with_sharding // CHECK-SAME: (%{{[a-z0-9]+}}: tensor<*xi32> {mhlo.sharding = "\01\02\03"}, %{{[a-z0-9]+}}: tensor<*xi1> {mhlo.sharding = "\04\05\06"}) // CHECK-SAME: -> (tensor<*xi32> {mhlo.sharding = "\0A\0B\0C"}, tensor<*xi1> {mhlo.sharding = "\0D\0E\0F"}) func.func @func_with_sharding(%arg0: tensor<*xi32>, %arg1: tensor<*xi1>) -> (tensor<*xi32>, tensor<*xi1>) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Feb 20 19:07:52 UTC 2024 - 47.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-collective.mlir
// CHECK: %[[GROUP_SIZE:.*]] = mhlo.constant dense<2.000000e+00> // CHECK: %[[REDUCE:.*]] = "mhlo.all_reduce" // CHECK-SAME{LITERAL}: replica_groups = dense<[[0, 1]]> : tensor<1x2xi64> // CHECK: mhlo.add // CHECK: mhlo.return // CHECK: %[[RESULT:.*]] = mhlo.divide %[[REDUCE]], %[[GROUP_SIZE]] // CHECK-NEXT: return %[[RESULT]]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 15.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/tests/optimize.mlir
// CHECK-LABEL: testDotToDotGeneralVectorVector func.func @testDotToDotGeneralVectorVector(%arg0: tensor<3072xf32>, %arg1: tensor<3072xf32>) -> tensor<f32> { %0 = "mhlo.dot"(%arg0, %arg1) : (tensor<3072xf32>, tensor<3072xf32>) -> tensor<f32> func.return %0 : tensor<f32> // CHECK: %[[RES:.*]] = "mhlo.dot_general"(%arg0, %arg1) <{ // CHECK-SAME: dot_dimension_numbers = #mhlo.dot<
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 22.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/order_by_dialect.mlir
return %14 : tensor<32x10xf32> } // CHECK: ReadVariableOp // CHECK: mhlo.convolution // CHECK: mhlo.add // CHECK: mhlo.maximum // CHECK: mhlo.reshape // CHECK: mhlo.dot // CHECK: mhlo.add // CHECK: mhlo.maximum // CHECK: return{{.*}}tensor<32x10xf32> // ----- // CHECK-LABEL: @mhlo_while func.func private @mhlo_while() { // CHECK-NEXT: mhlo.constant
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 06 15:32:52 UTC 2024 - 7.6K bytes - Viewed (0)