Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for GetScale (0.15 sec)

  1. tensorflow/compiler/mlir/lite/quantization/device_target.cc

      double scale_product = in_spec.getScale() * w_spec.getScale();
      if (fabs(scale_product - b_spec.getScale()) >= 1e-6) return failure();
    
      // input multipliers
      input_multipliers->append(3, kUnitQuantizedMultiplier);
    
      // output multipliers
      double real_multiplier = scale_product / o_spec.getScale();
      output_multipliers->push_back(QuantizeMultiplier(real_multiplier));
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc

        // Invoke BatchNormInferenceOp
        ::mlir::FloatAttr epsilon = bn_op.getEpsilonAttr();
        ::mlir::Value batch_norm = rewriter.create<mhlo::BatchNormInferenceOp>(
            bn_op.getLoc(), inputs, bn_op.getScale(), bn_op.getOffset(), mean,
            variance, epsilon, rewriter.getI64IntegerAttr(feature_index));
    
        // Return normalized values, mean, variable.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.td

    //===----------------------------------------------------------------------===//
    // Selu op patterns.
    //===----------------------------------------------------------------------===//
    
    def getScale : NativeCodeCall<
      "GetScalarOfType(getElementTypeOrSelf($0), 1.0507009873554804934193349852946)"
      >;
    
    def getScaledAlpha : NativeCodeCall<
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 24.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc

      if (auto uniform_type = llvm::dyn_cast<UniformQuantizedType>(element_type)) {
        if (multiplier_attr.isSplat()) {
          double new_scale = multiplier_array.front() * uniform_type.getScale();
          new_qtype = UniformQuantizedType::get(
              uniform_type.getFlags(), uniform_type.getStorageType(),
              uniform_type.getExpressedType(), new_scale,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  5. pkg/controller/replication/conversion.go

    	return nil, errors.New("ApplyStatus() is not implemented for conversionClient")
    }
    
    func (c conversionClient) GetScale(ctx context.Context, name string, options metav1.GetOptions) (result *autoscalingv1.Scale, err error) {
    	// This is not used by RSC.
    	return nil, errors.New("GetScale() is not implemented for conversionClient")
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Dec 14 18:43:33 UTC 2022
    - 12.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc

        return qmax - std::round((storage_type_max - zero_point) / rate);
      };
      if (auto q_type = dyn_cast<UniformQuantizedType>(type)) {
        const double scale = recalculate_scale(q_type.getScale());
        const double zero_point = recalculate_zero_point(q_type.getZeroPoint());
        return UniformQuantizedType::get(q_type.getFlags(), q_type.getStorageType(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 43.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc

          return failure();
        }
        auto scale_cast = rewriter.create<CastOp>(
            loc, qparams_op.getScale().getType(), scale_op.getOutput());
        auto zp_cast = rewriter.create<CastOp>(loc, qparams_op.getZp().getType(),
                                               zp_op.getOutput());
    
        qparams_op.getScale().replaceAllUsesWith(scale_cast.getOut());
        qparams_op.getZp().replaceAllUsesWith(zp_cast.getOut());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Nov 21 16:55:41 UTC 2023
    - 38.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                                         .cast<UniformQuantizedType>();
        new_filter_quantized_type = CreateI8F32UniformQuantizedType(
            filter_constant_op->getLoc(), *rewriter.getContext(),
            filter_quantized_type.getScale(), filter_quantized_type.getZeroPoint(),
            /*narrow_range=*/true);
      }
    
      // Required because the quantized dimension is changed from 3 -> 0.
      auto new_filter_result_type = RankedTensorType::getChecked(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types_test.cc

      const UniformQuantizedType quantized_type =
          CreateI8F32UniformQuantizedType(UnknownLoc::get(&ctx_), ctx_,
                                          /*scale=*/8.0, /*zero_point=*/99);
    
      EXPECT_EQ(quantized_type.getScale(), 8.0);
      EXPECT_EQ(quantized_type.getZeroPoint(), 99);
    }
    
    class CreateI32F32UniformQuantizedTypeTest : public Test {
     protected:
      CreateI32F32UniformQuantizedTypeTest() : ctx_() {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

        auto q_type = mlir::dyn_cast_or_null<quant::UniformQuantizedType>(
            input_type.getElementType());
        if (!q_type) return failure();
    
        const float scale = q_type.getScale();
        const float zp = q_type.getZeroPoint();
    
        auto input_values = input_dequant.getValue();
    
        // mapValues always takes a function returning APInt, even when the output
        // is actually float.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top