Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 15 of 15 for getIntOrFloatBitWidth (0.36 sec)

  1. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

        Type result_element_type = op.getType().getElementType();
        Type element_type = input_tensor_element_type.getIntOrFloatBitWidth() >=
                                    result_element_type.getIntOrFloatBitWidth()
                                ? input_tensor_element_type
                                : result_element_type;
        auto output_shape = InferXlaConvOutputShape(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/passes/quantize_composite_functions.cc

    ShapedType ConvertIntToQint(ShapedType input_type, MLIRContext* ctx) {
      int bit_width;
      bool is_signed;
    
      Type ele_type = input_type.getElementType();
      if (ele_type.isIntOrFloat()) {
        bit_width = ele_type.getIntOrFloatBitWidth();
        is_signed = ele_type.isSignlessIntOrFloat() || ele_type.isSignedInteger();
      } else if (QuantizedType qtype = mlir::dyn_cast<QuantizedType>(ele_type)) {
        bit_width = qtype.getStorageTypeIntegralWidth();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 54.5K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

          input_element_type.isIntOrFloat() && output_element_type.isIntOrFloat()) {
        const auto input_element_type_bitwidth =
            input_element_type.getIntOrFloatBitWidth();
        const auto output_element_type_bitwidth =
            output_element_type.getIntOrFloatBitWidth();
    
        auto is_output_shape_valid_with_small_input_element_type_bitwidth = [&]() {
          if (output_element_type_bitwidth % input_element_type_bitwidth != 0) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc

      Type type = x_type.clone(builder->getI32Type());
      return builder->create<CastOp>(loc, type, x, truncate);
    }
    
    static APFloat ConvertToAPFloat(double val, Type type) {
      if (type.getIntOrFloatBitWidth() == 32) {
        return APFloat(static_cast<float>(val));
      }
    
      return APFloat(val);
    }
    
    // Performs the operation of `Shape(input)[idx]`.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 74.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      // aligned to the nearest byte. So this is allowed.
      const char* raw_input = input_tensor.getRawData().data();
      const int element_byte_size =
          input_tensor.getElementType().getIntOrFloatBitWidth() / 8;
    
      // Hold current ND index in input tensor when computing
      // permutation.
      llvm::OwningArrayRef<uint64_t> current_input_index(
          input_tensor.getType().getRank());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top