Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 192 for element_types (0.21 sec)

  1. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

        auto* output_shapes = node.attrs().Find("output_shapes");
        auto* element_types = node.attrs().Find("T");
        if (output_shapes && !output_shapes->list().shape().empty()) {
          const auto& output_shape = output_shapes->list().shape(idx);
          const auto& element_type = element_types->list().type(idx);
          return ConvertToMlirTensorType(output_shape, element_type, &builder);
        }
      }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

        }
    
        Location loc = op.getLoc();
        Type element_type = input_ty.getElementType();
    
        // Only float, int, and complex types are currently supported.
        if (!mlir::isa<FloatType>(element_type) &&
            !mlir::isa<IntegerType>(element_type) &&
            !mlir::isa<ComplexType>(element_type)) {
          return rewriter.notifyMatchFailure(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

                          size_const});
      if (keep_slice_shape) return slice;
      auto element_type = tensorflow::GetTypeFromTFTensorShape(
          buffer_type.getShape().drop_front(), buffer_type.getElementType());
      auto reshape = builder.create<TF::ReshapeOp>(
          loc, ArrayRef<Type>{element_type},
          ArrayRef<Value>{slice,
                          GetR1Const(element_type.getShape(), builder, loc)});
      return reshape.getOutput();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        int64_t result_rank = -1;  // -1 means unknown result rank.
        Type element_dtype = op.getElementDtype();
        Type result_type = UnrankedTensorType::get(element_dtype);
        Value leading_dim = GetNumElements(op, adaptor.getOperands(), &rewriter);
        if (auto element_type =
                op.element_type().template dyn_cast<RankedTensorType>()) {
          result_rank = element_type.getRank() + 1;
          int64_t leading_dim_v = -1;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/legalize_tensorlist.cc

        element_type = push_back.getElementDtype();
      }
    
      if (!element_type.has_value()) return false;
      // TODO(b/288302706) add support for all types handled in the
      // `lower_static_tensor_list` pass.
      return element_type->isF32() || element_type->isInteger(64) ||
             element_type->isInteger(32) || element_type->isInteger(1);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/utils/constant_utils.cc

      Type element_type = shaped_type.getElementType();
      if (element_type.isF16()) {
        auto floatType = mlir::FloatType::getF16(element_type.getContext());
        auto floatAttr = mlir::FloatAttr::get(floatType, static_cast<float>(value));
        std::vector<Attribute> floatValues({floatAttr});
        return DenseElementsAttr::get(shaped_type, floatValues);
      } else if (element_type.isBF16()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/stablehlo/transforms/tflite_legalize_hlo.cc

        auto element_type = attr.getType().getElementType();
        if (attr.getNumElements() != 1 || !element_type.isIntOrFloat())
          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>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/unroll_batch_matmul.cc

    TF::ReshapeOp ConvertTFBatchMatMulOp<BatchMatMulOpType>::createReshapeOp(
        Value value, ArrayRef<int64_t> shape, Type element_type, Location loc,
        PatternRewriter& rewriter) {
      int64_t shape_rank = shape.size();
      auto shape_spec_type =
          RankedTensorType::get({shape_rank}, rewriter.getIntegerType(64));
      Type resultType = RankedTensorType::get(shape, element_type);
      auto constant_attr = DenseElementsAttr::get(shape_spec_type, shape);
      auto shape_tensor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/internal/reflect/annotations/TestAnnotationHandlingSupport.groovy

    @Target([ElementType.METHOD, ElementType.FIELD])
    @interface Short {
    }
    
    @Retention(RetentionPolicy.RUNTIME)
    @Target([ElementType.METHOD, ElementType.FIELD])
    @interface Tint {
        String value()
    }
    
    @Retention(RetentionPolicy.RUNTIME)
    @Target([ElementType.METHOD, ElementType.FIELD])
    @interface Ignored {
    }
    
    @Retention(RetentionPolicy.RUNTIME)
    @Target([ElementType.METHOD, ElementType.FIELD])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 20:42:35 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    }
    
    // Return true when the given element_type is I32.
    bool IsI32Type(Type element_type) {
      return element_type.isInteger(32) && !element_type.isUnsignedInteger();
    }
    
    // Return true when the given element_type is UI32.
    bool IsUI32Type(Type element_type) {
      return element_type.isInteger(32) && element_type.isUnsignedInteger();
    }
    
    // Return true when the given element_type is I64.
    bool IsI64Type(Type element_type) {
    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