Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 29 for RSQRT (0.06 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize-tfl-stablehlo-rsqrt.mlir

    func.func @main(%arg0: tensor<2xf32>) -> tensor<2xf32> {
      %0 = "tfl.custom"(%arg0) {custom_code = "stablehlo.rsqrt", custom_option = #tfl<const_bytes : "0x00000100002401">} : (tensor<2xf32>) -> tensor<2xf32>
      func.return %0 : tensor<2xf32>
    }
    }
    
    // CHECK:       module
    // CHECK-NEXT:  func @main(%arg0: tensor<2xf32>) -> tensor<2xf32> {
    // CHECK-NEXT:  %0 = stablehlo.rsqrt %arg0 : tensor<2xf32>
    // CHECK-NEXT:  return %0 : tensor<2xf32>
    // CHECK-NEXT:  }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Dec 16 05:09:09 UTC 2022
    - 577 bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/prepare-tf.mlir

    //              rsqrt(variance + epsilon)
    // CHECK:  %[[RSQRT:.*]] = "tf.Rsqrt"(%[[ADD1]])
    //              scale * rsqrt(variance + epsilon)
    // CHECK:  %[[MUL1:.*]] = "tf.Mul"(%[[ARG1:.*]], %[[RSQRT]])
    //              x * scale * rsqrt(variance + epsilon)
    // CHECK:  %[[MUL2:.*]] = "tf.Mul"(%[[ARG0:.*]], %[[MUL1]])
    //              mean * scale * rsqrt(variance + epsilon)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 59.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/unfuse_mhlo_batch_norm.mlir

      // CHECK-DAG: %[[EPS_BCAST:.+]] = mhlo.constant dense<1.001000e-05> : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS:.+]] = mhlo.add %[[VARIANCE]], %[[EPS_BCAST]] : tensor<256xf32>
      // CHECK-DAG: %[[VARIANCE_EPS_RSQRT:.+]] = mhlo.rsqrt %[[VARIANCE_EPS]] : tensor<256xf32>
      // CHECK-DAG: %[[MULTIPLIER:.+]] = mhlo.multiply %[[VARIANCE_EPS_RSQRT]], %[[SCALE]] : tensor<256xf32>
      // CHECK-DAG: %[[MUL_MEAN:.+]] = mhlo.multiply %[[MULTIPLIER]], %[[MEAN]] : tensor<256xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/prepare_patterns.td

        $t, $m, $v, $beta, $gamma, F32Attr:$variance_epsilon, ConstBoolAttrFalse:$scale_after_normalization),
      (TF_AddOp
        (TF_MulOp $t, (TF_RsqrtOp:$rsqrt (TF_AddOp $v, (TF_ConstOp $variance_epsilon)))),
        (TF_SubOp $beta, (TF_MulOp $m, $rsqrt)))>;
    def ConvertBatchNormWithGlobalNormalization_2 : Pat<
      (TF_BatchNormWithGlobalNormalizationOp
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  5. tensorflow/cc/gradients/math_grad_test.cc

    }
    
    TEST_F(CWiseUnaryGradTest, Rsqrt) {
      auto x_fn = [this](const int i) { return RV({1, 2, 3, 4, 5, 6, 7, 8}); };
      TestCWiseGrad<float, float>(RSQRT, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Rsqrt_Complex) {
      auto x_fn = [this](const int i) {
        return CRV({{-1.0f, 0.5f}, {1.0f, 0.5f}, {2, -1}});
      };
      TestCWiseGrad<complex64, complex64>(RSQRT, x_fn);
    }
    
    TEST_F(CWiseUnaryGradTest, Exp) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Aug 25 18:20:20 UTC 2023
    - 36K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/experimental/tac/hardwares/gpu_hardware.cc

    // tfl.log / tfl.logistic / tfl.max_pool_2d / tfl.mirror_pad / tfl.maximum /
    // tfl.custom / tfl.mean / tfl.minimum / tfl.pad / tfl.pow / tfl.prelu /
    // tfl.relu / tfl.relu6 / tfl.rsqrt / tfl.sin / tfl.slice / tfl.softmax /
    // tfl.space_to_depth / tfl.sqrt / tfl.square / tfl.squared_difference /
    // tfl.strided_slice / tfl.tanh / tfl.transpose / tfl.transpose_conv
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 06 03:08:33 UTC 2023
    - 7.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/jit/tests/opens2s_gnmt_mixed_precision.golden_summary

    cluster 11 size 302
     Add 24
     BatchMatMulV2 1
     BiasAdd 8
     Cast 8
     ConcatV2 16
     Const 81
     ExpandDims 3
     Fill 1
     GreaterEqual 8
     Identity 1
     Less 1
     MatMul 10
     Mul 44
     Range 1
     Rsqrt 1
     Select 19
     Shape 6
     Sigmoid 24
     Snapshot 8
     Softmax 1
     Split 8
     SplitV 6
     Square 1
     Squeeze 1
     StridedSlice 1
     Sum 2
     Tanh 17
    cluster 12 size 6
     Add 1
     All 1
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jan 06 10:38:14 UTC 2023
    - 5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/tests/flatbuffer2mlir/vhlo.mlir

    //CHECK-NEXT: return %0 : tensor<1x30x1xi32>
    //CHECK-NEXT:}
    
    func.func @rsqrt(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
     %0 = "vhlo.rsqrt_v1" (%arg0) : (tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32>
     func.return %0 : tensor<1x1x1x96xf32>
    }
    
    //CHECK:func.func private @rsqrt(%arg0: tensor<1x1x1x96xf32>) -> tensor<1x1x1x96xf32> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 14 19:15:40 UTC 2024
    - 31.9K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

            $round_val
          ),
          /*incompatible_shape_error*/ConstBoolAttrTrue
        ),
        $zero,
        $rounded
      )>;
    
    //===----------------------------------------------------------------------===//
    // Rsqrt op patterns.
    //===----------------------------------------------------------------------===//
    
    // RsqrtGrad(lhs, rhs) = (lhs * lhs * lhs) * (rhs / -2)
    def LowerRsqrtGradOp : Pat<
      (TF_RsqrtGradOp $lhs, $rhs),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/tests/const-fold.mlir

      %8 = "tfl.sin"(%1) : (tensor<f32>) -> tensor<f32>
      %9 = "tfl.cos"(%2) : (tensor<f32>) -> tensor<f32>
      %10 = "tfl.log"(%3) : (tensor<f32>) -> tensor<f32>
      %11 = "tfl.sqrt"(%4) : (tensor<f32>) -> tensor<f32>
      %12 = "tfl.rsqrt"(%5) : (tensor<f32>) -> tensor<f32>
      %13 = "tfl.square"(%6) : (tensor<f32>) -> tensor<f32>
    
      func.return %7, %8, %9, %10, %11, %12, %13 : tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>, tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 45.8K bytes
    - Viewed (0)
Back to top