Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for mul (0.07 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/canonicalize.mlir

      // CHECK: %[[CONST:.*]] = "tf.Const"()
      // CHECK-DAG: %[[MUL1:.*]] = "tf.Mul"(%arg0, %arg2)
      // CHECK-DAG: %[[MUL2:.*]] = "tf.Mul"(%arg1, %arg3)
      // CHECK: "tf.ConcatV2"(%[[MUL1]], %[[MUL2]], %[[CONST]])
      %0 = "tf.Const"() { value = dense<1> : tensor<i32> } : () -> tensor<i32>
      %1 = "tf.Mul"(%arg0, %arg2) : (tensor<?x2xf32>, tensor<f32>) -> tensor<?x2xf32>
      %2 = "tf.Mul"(%arg1, %arg3) : (tensor<?x2xf32>, tensor<f32>) -> tensor<?x2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 132.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/generic.rules

      (Add32 (Const32 <t> [c*d]) (Mul32 <t> (Const32 <t> [c]) x))
    
    // Rewrite x*y ± x*z  to  x*(y±z)
    (Add(64|32|16|8) <t> (Mul(64|32|16|8) x y) (Mul(64|32|16|8) x z))
    	=> (Mul(64|32|16|8) x (Add(64|32|16|8) <t> y z))
    (Sub(64|32|16|8) <t> (Mul(64|32|16|8) x y) (Mul(64|32|16|8) x z))
    	=> (Mul(64|32|16|8) x (Sub(64|32|16|8) <t> y z))
    
    // rewrite shifts of 8/16/32 bit consts into 64 bit consts to reduce
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 22:21:05 UTC 2024
    - 135.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/optimize.cc

        return success();
      }
    };
    
    // Fuse Mul with proceeding FullyConnected.
    // Replace ..
    // Mul(FC(input, filter, bias), rhs)
    // .. with ..
    // FC(lhs, Mul(filter, rhs), bias)
    // .. if rhs, filter, and bias are all constants.
    // The generated Mul will be constant folded to a single matrix using TF::Mul.
    // TODO(b/136285429): Move to tablegen when variadic is supported
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/tests/shape_inference.mlir

        %mul = "tf.Mul"(%arg0, %arg0) : (tensor<f32>, tensor<f32>) -> tensor<f32>
        // Folding will infer that: Pow(%mul, 1.0) -> %mul
        // However we don't have the actual value for the mul, but we can use the
        // mul type!
        // CHECK: tf.Pow
        // CHECK-SAME: -> tensor<f32>
        %pow = "tf.Pow"(%mul, %cst1) : (tensor<f32>, tensor<f32>) -> tensor<*xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 23 17:24:10 UTC 2024
    - 167.4K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/ARM64.rules

    // mul by constant
    (MUL x (MOVDconst [-1])) => (NEG x)
    (MUL _ (MOVDconst [0])) => (MOVDconst [0])
    (MUL x (MOVDconst [1])) => x
    (MUL x (MOVDconst [c])) && isPowerOfTwo64(c) => (SLLconst [log64(c)] x)
    (MUL x (MOVDconst [c])) && isPowerOfTwo64(c-1) && c >= 3 => (ADDshiftLL x x [log64(c-1)])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 113.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/tests/legalize-tf.mlir

      // CHECK: %[[MUL:.*]] = tfl.mul %arg0, %[[BROADCAST_TO]] {fused_activation_function = "NONE"} : tensor<8x7x6x5x4x3x2x1xf32>
      // CHECK: return %[[MUL]] : tensor<8x7x6x5x4x3x2x1xf32>
    }
    
    func.func @mul_with_high_dims_dynamic_shape_both_sides(%arg0: tensor<8x7x6x5x?x3x2x1xf32>, %arg1: tensor<?x3x2x1xf32>) -> tensor<8x7x6x5x?x3x2x1xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 05 01:54:33 UTC 2024
    - 153.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

    //
    //   %0 = tf.Mul(%lhs_0, %rhs_0)
    //   %1 = tf.Mul(%lhs_1, %rhs_1)
    //   ...
    //   %n = tf.Mul(%lhs_n, %rhs_n)
    //   %m = tf.ConcatV2(%0, %1, ..., %n, %axis)
    //
    // Rewrite it to:
    //
    //   %0 = tf.ConcatV2(%lhs0, %lhs1, ..., %lhs_n, %lhs_concat_axis)
    //   %1 = tf.ConcatV2(%rhs0, %rhs1, ..., %rhs_n, %rhs_concat_axis)
    //   %2 = tf.Mul(%0, %1)
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/ops.mlir

      // CHECK: tfl.mul %arg0, %arg1 {fused_activation_function = "RELU6"}
      %0 = tfl.mul %arg0, %arg1 {fused_activation_function = "RELU6"} : tensor<? x i16>
      func.return %0#0 : tensor<? x i16>
    }
    
    // CHECK-LABEL: testMulComplex
    func.func @testMulComplex(tensor<? x complex<f32>>, tensor<? x complex<f32>>) -> tensor<? x complex<f32>> {
    ^bb0(%arg0: tensor<? x complex<f32>>, %arg1: tensor<? x complex<f32>>):
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/jit/encapsulate_subgraphs_pass_test.cc

      std::vector<string> expected_nodes = {"cluster1", "cluster2", "mul", "x"};
      EXPECT_EQ(expected_nodes, GraphNodes(*graph));
    
      std::vector<std::pair<string, string>> expected_edges = {
          {"cluster1:0", "cluster2:0"},
          {"cluster1:0", "mul:0"},
          {"cluster2:0", "mul:1"},
          {"x:0", "cluster1:0"}};
      EXPECT_EQ(expected_edges, GraphEdges(*graph));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 113.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/prepare-composite-functions-tf.mlir

      %15 = "tf.AddV2"(%14, %3) {device = ""} : (tensor<2x16xi32>, tensor<i32>) -> tensor<2x16xi32>
      %16 = "tf.Mul"(%15, %8) {device = ""} : (tensor<2x16xi32>, tensor<i32>) -> tensor<2x16xi32>
      %17 = "tf.AddV2"(%16, %6) {device = ""} : (tensor<2x16xi32>, tensor<2x1xi32>) -> tensor<2x16xi32>
      %18 = "tf.Mul"(%14, %8) {device = ""} : (tensor<2x16xi32>, tensor<i32>) -> tensor<2x16xi32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 122.1K bytes
    - Viewed (0)
Back to top