Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for value_begin (0.26 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          return false;
        if (mlir::isa<FloatType>(element_type)) {
          auto value = *attr.value_begin<APFloat>();
          return value.isNegative() && value.isInfinity();
        } else if (element_type.isInteger(1)) {
          auto value = *attr.value_begin<APInt>();
          return value.isZero();
        } else {
          auto value = *attr.value_begin<APInt>();
          return element_type.isUnsignedInteger() ? value.isMinValue()
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/optimize.cc

            new_bias_values.resize(bias_size, *bias_cst.value_begin<APFloat>());
          } else if (bias_cst.getNumElements() == bias_size) {  // 1-d bias, copy it
            new_bias_values.insert(new_bias_values.begin(),
                                   bias_cst.value_begin<APFloat>(),
                                   bias_cst.value_end<APFloat>());
          } else {
            return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        TFL::TransposeOp::build(
            *builder, result, UnrankedTensorType::get(input_type.getElementType()),
            input, perm);
        return;
      }
    
      const auto perm_value_it = perm_const.value_begin<APInt>();
    
      const ArrayRef<int64_t> input_shape = input_type.getShape();
      SmallVector<int64_t, 4> output_shape(input_shape.size());
    
      for (int i = 0; i < output_shape.size(); ++i) {
    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