Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for rsqr (0.08 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/lite/stablehlo/tests/legalize_hlo.mlir

    }
    
    // CHECK-LABEL:   func @rsqrt(
    // CHECK-SAME:                %[[VAL_0:.*]]: tensor<2xf32>) -> tensor<2xf32> {
    // CHECK:           %[[VAL_1:.*]] = "tf.Rsqrt"(%[[VAL_0]]) : (tensor<2xf32>) -> tensor<2xf32>
    // CHECK:           return %[[VAL_1]] : tensor<2xf32>
    // CHECK:         }
    func.func @rsqrt(%arg0: tensor<2xf32>) -> tensor<2xf32> {
      %0 = "mhlo.rsqrt"(%arg0) : (tensor<2xf32>) -> tensor<2xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 29 07:26:59 UTC 2024
    - 340.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/tests/ops.mlir

    ^bb0(%arg0: tensor<? x f32>):
      // CHECK: "tfl.rsqrt"(%arg0)
      %0 = "tfl.rsqrt"(%arg0): (tensor<? x f32>) -> tensor<? x f32>
      func.return %0 : tensor<? x f32>
    }
    
    // CHECK-LABEL: testRsqrtQuant
    func.func @testRsqrtQuant(%arg0: tensor<1x80x1x!quant.uniform<i8:f32, 0.048358432948589325:-128>>) -> tensor<1x80x1x!quant.uniform<i8:f32, 0.0066055487841367722:-128>> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  5. src/math/big/float.go

    	// and y which is often the case (e.g., if all floats
    	// have the same precision).
    	// TODO(gri) Optimize this for the common case.
    
    	e := int64(x.exp) + int64(y.exp)
    	if x == y {
    		z.mant = z.mant.sqr(x.mant)
    	} else {
    		z.mant = z.mant.mul(x.mant, y.mant)
    	}
    	z.setExpAndRound(e-fnorm(z.mant), 0)
    }
    
    // z = x / y, ignoring signs of x and y for the division
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 15:46:54 UTC 2024
    - 44.5K bytes
    - Viewed (0)
  6. doc/go_spec.html

    expression:
    </p>
    
    <pre>
    var a, b, c = f() + v(), g(), sqr(u()) + v()
    
    func f() int        { return c }
    func g() int        { return a }
    func sqr(x int) int { return x*x }
    
    // functions u and v are independent of all other variables and functions
    </pre>
    
    <p>
    The function calls happen in the order
    <code>u()</code>, <code>sqr()</code>, <code>v()</code>,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (1)
  7. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

      );
    
      let results = (outs
        TFL_TensorOf<[F32, I32, I64, QI16, QUI8, TFL_Quint8]>:$output
      );
    
      let hasOptions = 1;
    }
    
    def TFL_RsqrtOp: TFL_Op<"rsqrt", [Pure,
                                      QuantizableResult,
                                      TFL_SameFirstOperandAndFirstResultElementType,
                                      SameOperandsAndResultShape]> {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

      }];
    }
    
    def TF_RsqrtGradOp : TF_Op<"RsqrtGrad", [Pure, TF_SameOperandsAndResultTypeResolveRef]> {
      let summary = "Computes the gradient for the rsqrt of `x` wrt its input.";
    
      let description = [{
    Specifically, `grad = dy * -0.5 * y^3`, where `y = rsqrt(x)`, and `dy`
    is the corresponding input gradient.
      }];
    
      let arguments = (ins
        TF_FpOrComplexTensor:$y,
        TF_FpOrComplexTensor:$dy
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

            non_feature_dims.push_back(i);
          }
          auto reduce_dims = GetI64ElementsAttr(non_feature_dims, &rewriter);
          auto scalar_broadcast_dims = rewriter.getDenseI64ArrayAttr({});
    
          // scratch1 = rsqrt(var + epsilon)
          RankedTensorType scalar_float =
              tensorflow::GetTypeFromTFTensorShape({}, kernel_type);
          auto epsilon = rewriter.create<ConstantOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  10. RELEASE.md

           *    `TfLiteSignatureRunnerResizeInputTensor`
    
        * New C API function `TfLiteExtensionApisVersion` added to `tensorflow/lite/c/c_api.h`.
    
        * Add int8 and int16x8 support for RSQRT operator
    
    * Android NDK r25 is supported.
    
    ### Bug Fixes and Other Changes
    
    *   Add TensorFlow Quantizer to TensorFlow pip package.
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 730.3K bytes
    - Viewed (0)
Back to top