Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 218 for rsqrt (0.15 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

            break;
          case INV:
            y = Reciprocal(scope_, x);
            break;
          case SQUARE:
            y = Square(scope_, x);
            break;
          case SQRT:
            y = Sqrt(scope_, x);
            break;
          case RSQRT:
            y = Rsqrt(scope_, x);
            break;
          case EXP:
            y = Exp(scope_, x);
            break;
          case EXPM1:
            y = Expm1(scope_, x);
            break;
    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
    class GpuBasicSupportedOpNoCost : public TargetHardwareOperation {
    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

     Const 5
     GreaterEqual 1
     MatMul 1
     Mul 5
     Select 2
     Sigmoid 3
     Snapshot 1
     Split 1
     Tanh 2
    cluster 29 size 9
     Add 1
     Mul 2
     RealDiv 2
     Sqrt 2
     Sub 2
    cluster 30 size 9
     Add 1
     Mul 2
     RealDiv 2
     Sqrt 2
     Sub 2
    cluster 31 size 4
     Mul 3
     UnsortedSegmentSum 1
    cluster 32 size 4
     Mul 3
    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>
    
    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