Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for convertToFloat (0.48 sec)

  1. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        const llvm::APFloat value = index_and_value.value();
        if (index_and_value.index() % 2 == 0) {
          mins.push_back(value.convertToFloat());
        } else {
          maxs.push_back(value.convertToFloat());
        }
      }
    
      return tflite::CreateQuantizationParameters(
          builder_, builder_.CreateVector<float>(mins),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      Type result_type = getType();
      // Only constant fold for tensor of f32 is implemented.
      if (!IsF32ShapedType(result_type)) return nullptr;
    
      auto compute = [](APFloat value) -> APFloat {
        float f = value.convertToFloat();
        float result = std::sin(f);
        return APFloat(result);
      };
      return ConstFoldUnaryOp(result_type, operands[0], compute);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

      const llvm::fltSemantics& semantics = op.getMin().getSemantics();
      float rmin, rmax;
      if (&semantics == &APFloat::IEEEsingle()) {
        rmin = op.getMin().convertToFloat();
        rmax = op.getMax().convertToFloat();
      } else {
        rmin = op.getMin().convertToDouble();
        rmax = op.getMax().convertToDouble();
      }
      // Range boundaries must be valid.
      if (rmin >= rmax) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
Back to top