Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 71 for FloatType (0.14 sec)

  1. tensorflow/cc/experimental/base/tests/tensorhandle_test.cc

    using tensorflow::experimental::cc::Status;
    using tensorflow::experimental::cc::Tensor;
    using tensorflow::experimental::cc::TensorHandle;
    
    using SimpleTypes = ::testing::Types<
        tensorflow::FloatType, tensorflow::DoubleType, tensorflow::Int32Type,
        tensorflow::UINT8Type, tensorflow::INT8Type, tensorflow::INT64Type,
        tensorflow::UINT16Type, tensorflow::UINT32Type, tensorflow::UINT64Type>;
    
    template <typename T>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/quantization/device_target.cc

    namespace mlir {
    namespace quant {
    
    constexpr int k8Bits = 8;
    constexpr int k32Bits = 32;
    constexpr unsigned kSigned = QuantizationFlags::Signed;
    
    DeviceTarget::DeviceTarget(MLIRContext* ctx) : ctx_(ctx) {
      f32_ = FloatType::getF32(ctx_);
      i8_ = IntegerType::get(ctx_, k8Bits);
      i8_min_ = QuantizedType::getDefaultMinimumForInteger(kSigned, k8Bits);
      i8_max_ = QuantizedType::getDefaultMaximumForInteger(kSigned, k8Bits);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform.cc

          auto real_int = absl::bit_cast<int32_t>(real);
          return APInt(/*numBits=*/32, real_int);
        };
    
        auto dequant_values =
            mlir::cast<DenseIntOrFPElementsAttr>(input_values)
                .mapValues(FloatType::getF32(rewriter.getContext()),
                           llvm::function_ref<DequantizeFuncType>(dequantize_func));
        rewriter.replaceOpWithNewOp<TFL::ConstOp>(dequant_op, dequant_op.getType(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize.cc

            if (type.getElementType().isa<FloatType>()) {
              return false;
            }
            if (type.getElementType().isa<QuantizedType>()) {
              has_quantized_types = true;
            }
          }
        }
        for (Value output : call_op.getOutput()) {
          if (auto type = output.getType().dyn_cast<TensorType>()) {
            if (type.getElementType().isa<FloatType>()) {
              return false;
            }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 05:52:39 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/quantization/import_quant_stats_pass.cc

          return false;
        Value res = op->getResult(index);
        return res.getType().isa<ShapedType>() &&
               res.getType().cast<ShapedType>().getElementType().isa<FloatType>();
      }
    
      // A method to retrieve the name for the given op.
      OperationToName op_to_name_;
    
      // We split the normal names and regex names, since the former can use hash
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 08 10:41:08 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  6. pkg/kubelet/stats/provider_test.go

    			case 2:
    				e.Type = cadvisorapiv1.MetricType("delta")
    			}
    			switch c.Intn(2) {
    			case 0:
    				e.Format = cadvisorapiv1.IntType
    			case 1:
    				e.Format = cadvisorapiv1.FloatType
    			}
    			c.Fuzz(&e.Units)
    		})
    	var ret []cadvisorapiv1.MetricSpec
    	f.Fuzz(&ret)
    	return ret
    }
    
    func generateCustomMetrics(spec []cadvisorapiv1.MetricSpec) map[string][]cadvisorapiv1.MetricVal {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 20K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

        // in float32 for that case.
        TensorType tensor_type = original_tensor_type;
        FloatType float_type = mlir::cast<FloatType>(tensor_type.getElementType());
        bool needs_cast = float_type.getWidth() < 32;
        if (needs_cast) {
          MLIRContext *context = rewriter.getContext();
          float_type = FloatType::getF32(context);
          if (original_tensor_type.hasRank()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver.cc

      fn_.walk([&](arith::ConstantOp cst) {
        // Non-float tensors are neither weights nor require quantization.
        const auto type = mlir::dyn_cast<ShapedType>(cst.getType());
        if (!type || !mlir::isa<FloatType>(type.getElementType())) return;
    
        // Skip if the value is NaN or INF.
        // Otherwise the illegal scale/zp will be calculated.
        auto float_attr = mlir::dyn_cast<DenseFPElementsAttr>(cst.getValueAttr());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 38.1K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/tftext_utils.cc

      if (!hash_seed) {
        return func.emitError()
               << "'hash_seed' attribute is not set or not an array";
      }
      auto output_type = GetResultType(func, 0);
      if (!output_type || !mlir::isa<FloatType>(output_type.getElementType()) ||
          !RankEquals(output_type, 2)) {
        return func.emitError() << "Output should be a 2D float tensor.";
      }
      if (output_type.getDimSize(1) != hash_seed.size()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.4K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.cc

        return false;
      }
    
      bool has_quantized_types = false;
      for (Value operand : call_op.getOperands()) {
        if (const TensorType type = mlir::dyn_cast<TensorType>(operand.getType())) {
          if (mlir::isa<FloatType>(type.getElementType())) {
            return false;
          }
          if (mlir::isa<UniformQuantizedType, UniformQuantizedPerAxisType>(
                  type.getElementType())) {
            has_quantized_types = true;
          }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 06:04:36 UTC 2024
    - 41.7K bytes
    - Viewed (0)
Back to top