Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 148 for getElementDtype (0.61 sec)

  1. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      CPred<"$_self.isa<ElementsAttr>() && $_self.cast<ElementsAttr>().getShapedType().getElementType().isF32()">,
            "32 bit float constant tensor">;
    
    // Checks if the param passed is a float ElementsAttr.
    def FloatElementsAttr : ElementsAttrBase<
      CPred<"$_self.isa<ElementsAttr>() && $_self.cast<ElementsAttr>().getShapedType().getElementType().isa<FloatType>()">,
            "float constant tensor">;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/transforms/legalize_patterns.td

      "non-opaque constant tensor">;
    
    def F32ElementsAttr : ElementsAttrBase<
      CPred<"$_self.cast<ElementsAttr>().getShapedType().getElementType().isF32()">, "float constant tensor">;
    
    def Int64ElementsAttr : ElementsAttrBase<
      CPred<"$_self.cast<ElementsAttr>().getShapedType().getElementType().isInteger(64)">, "Int 64 constant tensor">;
    
    // Extract the ith int element from an ArrayAttr $0 as an 32-bit IntegerAttr
    // with builder.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 04 13:30:42 UTC 2024
    - 28.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/client-services/src/main/java/org/gradle/internal/daemon/client/serialization/ClasspathInferer.java

                        Type type = Type.getObjectType(classDescriptor);
                        while (type.getSort() == Type.ARRAY) {
                            type = type.getElementType();
                        }
                        if (type.getSort() != Type.OBJECT) {
                            // A primitive type
                            continue;
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 19:53:31 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.h

      LogicalResult matchAndRewrite(quantfork::StatisticsOp op,
                                    PatternRewriter& rewriter) const override {
        Type expressed = op.getType().cast<ShapedType>().getElementType();
        quant::QuantizedType quant_type;
        SmallVector<double, 4> mins, maxs;
    
        if (op.getAxisStats().has_value()) {
          // Per axis quantization (or per channel quantization)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 24 20:30:06 UTC 2024
    - 41.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc

            auto new_user_op_type = CloneTypeWithNewElementType(
                original_result_type,
                mlir::cast<ShapedType>(op_before_dequantize.getType())
                    .getElementType());
            createNewDequantizeOp(rewriter, op, user_op, user_idx,
                                  new_user_op_type);
          } else {
            createNewDequantizeOp(rewriter, op, user_op, user_idx,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

              mlir::dyn_cast<mlir::TF::ResourceType>(arg_type.getElementType())) {
        llvm::ArrayRef<mlir::TensorType> subtypes = resource_type.getSubtypes();
        if (!subtypes.empty()) {
          AttrValue handle_dtypes_attr;
          AttrValue handle_shapes_attr;
          for (mlir::TensorType subtype : subtypes) {
            DataType dtype;
            TF_RETURN_IF_ERROR(ConvertToDataType(subtype.getElementType(), &dtype));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

              mlir::dyn_cast<mlir::TF::ResourceType>(arg_type.getElementType())) {
        llvm::ArrayRef<mlir::TensorType> subtypes = resource_type.getSubtypes();
        if (!subtypes.empty()) {
          AttrValue handle_dtypes_attr;
          AttrValue handle_shapes_attr;
          for (mlir::TensorType subtype : subtypes) {
            DataType dtype;
            TF_RETURN_IF_ERROR(ConvertToDataType(subtype.getElementType(), &dtype));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractCollectionProperty.java

                if (!elementType.isAssignableFrom(collectionProp.getElementType())) {
                    throw new IllegalArgumentException(String.format("Cannot set the value of a property of type %s with element type %s using a provider with element type %s.", collectionType.getName(), elementType.getName(), collectionProp.getElementType().getName()));
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 29.8K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_driver_test.cc

      EXPECT_TRUE(isa<quantfork::DequantizeCastOp>(filter_dcast_op));
      EXPECT_TRUE(isa<UniformQuantizedPerAxisType>(
          mlir::cast<TensorType>(filter_qcast_op->getResult(0).getType())
              .getElementType()));
    }
    
    }  // namespace
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/quantization/common/uniform_quantized_types.cc

      return false;
    }
    
    bool IsQuantizedTensorType(Type type) {
      if (!mlir::isa<TensorType>(type)) {
        return false;
      }
      Type element_type = mlir::cast<TensorType>(type).getElementType();
      return mlir::isa<QuantizedType>(element_type);
    }
    
    bool IsOpFullyQuantized(Operation* op) {
      return llvm::all_of(op->getOperandTypes(), IsQuantizedTensorType) &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top