Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 304 for h_scale (0.15 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/tests/quantize_composite_functions_xla.mlir

    // CHECK-DAG: %[[w0_quantized:.*]] = "tf.Const"() <{value = dense<{{\[\[\[\[}}-42, 18
    // CHECK-DAG: %[[in_scale:.*]] = "tf.Const"() <{value = dense<0.0039215642> : tensor<f32>}> : () -> tensor<f32>
    // CHECK-DAG: %[[in_out_zp:.*]] = "tf.Const"() <{value = dense<-128> : tensor<i32>}> : () -> tensor<i32>
    // CHECK-DAG: %[[w0_scale:.*]] = "tf.Const"() <{value = dense<0.0150353173> : tensor<f32>}> : () -> tensor<f32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jan 08 01:16:10 UTC 2024
    - 25.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/tests/ops.mlir

    f32], _support_output_type_float_in_quantized_op = true, detections_per_class = 100 : i64, device = "", h_scale = 5.000000e+00 : f32, max_classes_per_detection = 1 : i64, max_detections = 20 : i64, nms_iou_threshold = 6.000000e-01 : f32, nms_score_threshold = 3.000000e-01 : f32, num_classes = 90 : i64, use_regular_nms = false, w_scale = 5.000000e+00 : f32, x_scale = 1.000000e+01 : f32, y_scale = 1.000000e+01 : f32} : (tensor<1x64x64x32xf32>, tensor<1x64x64x32xf32>, tensor<1x64x64x32xf32>) -> (te...
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 189.2K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apimachinery/pkg/api/resource/amount.go

    // was lost. (1.1e5).AsScale(5) would return 1.1e5, but (1.1e5).AsScale(6) would return 1e6.
    func (a int64Amount) AsScale(scale Scale) (int64Amount, bool) {
    	if a.scale >= scale {
    		return a, true
    	}
    	result, exact := negativeScaleInt64(a.value, scale-a.scale)
    	return int64Amount{value: result, scale: scale}, exact
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 13 19:42:28 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

        for (RequantizeState& rescale : rescales) {
          if (rescale.params == quantized_type) {
            rescale.users.emplace_back(op, operand_index);
            return true;
          }
        }
        RequantizeState& rescale = rescales.emplace_back();
        rescale.pos = RequantizeState::ON_OUTPUT;
        rescale.params = quantized_type;
        rescale.users.emplace_back(op, operand_index);
        return true;
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity.go

    	}
    	return q.i.Sign()
    }
    
    // AsScale returns the current value, rounded up to the provided scale, and returns
    // false if the scale resulted in a loss of precision.
    func (q *Quantity) AsScale(scale Scale) (CanonicalValue, bool) {
    	if q.d.Dec != nil {
    		return q.d.AsScale(scale)
    	}
    	return q.i.AsScale(scale)
    }
    
    // RoundUp updates the quantity to the provided scale, ensuring that the value is at
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 23.8K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

      // TFR_ConstantTensorOp (
      //   ConstantOp (ConstAttr<F32Attr (in_scale[0] * in_scale[1] /
      //   out_scale))
      // )
      // Currently, all decompositions using this pattern (Conv2D, FC) have the
      // following preconditions:
      // * out_scale: float scalar attribute
      // * in_scale[0] (input scale): float scalar, given by tf.Const -> tfr.cast
      // * in_scale[1] (filter scale): float scalar/vector
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/quantization/quantization_context.cc

      auto &state = GetResultQuantState(op, res_index);
      if (state.params == params) {
        return false;
      }
      if (!state.IsEmpty()) {
        auto &rescale = GetResultRequantizeState(op, res_index);
        rescale.params = params;
        rescale.pos = RequantizeState::ON_INPUT;
        return false;
      }
      state.params = params;
      return true;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 08 01:38:03 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. src/math/cmplx/sqrt.go

    		r := math.Sqrt(0.5 * imag(x))
    		return complex(r, r)
    	}
    	a := real(x)
    	b := imag(x)
    	var scale float64
    	// Rescale to avoid internal overflow or underflow.
    	if math.Abs(a) > 4 || math.Abs(b) > 4 {
    		a *= 0.25
    		b *= 0.25
    		scale = 2
    	} else {
    		a *= 1.8014398509481984e16 // 2**54
    		b *= 1.8014398509481984e16
    		scale = 7.450580596923828125e-9 // 2**-27
    	}
    	r := math.Hypot(a, b)
    	var t float64
    	if a > 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 01 03:16:37 UTC 2020
    - 3K bytes
    - Viewed (0)
  9. src/cmd/vendor/github.com/google/pprof/internal/driver/html/common.js

          e.preventDefault();
        } else if (mode == TOUCHZOOM) {
          // Get two touches; new gap; rescale to ratio.
          const t1 = findTouch(e.touches, touchid);
          const t2 = findTouch(e.touches, touchid2);
          if (t1 == null || t2 == null) return;
          const gap = touchGap(t1, t2);
          rescale(initScale * gap / initGap, centerPoint);
          e.preventDefault();
        }
      }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 16 15:19:53 UTC 2024
    - 20K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/api/resource/quantity_test.go

    		q3.SetScaled(item.value, item.scale)
    		if q.Cmp(*q3) != 0 {
    			t.Errorf("Expected %v and %v to be equal", q, q3)
    		}
    	}
    }
    
    func TestScaledValue(t *testing.T) {
    	table := []struct {
    		fromScale Scale
    		toScale   Scale
    		expected  int64
    	}{
    		{Nano, Nano, 1},
    		{Nano, Micro, 1},
    		{Nano, Milli, 1},
    		{Nano, 0, 1},
    		{Micro, Nano, 1000},
    		{Micro, Micro, 1},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 49.4K bytes
    - Viewed (0)
Back to top