Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 171 for getElementDtype (0.42 sec)

  1. tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc

      // doesn't require quantization.
      auto tensor_type = mlir::dyn_cast<TensorType>(value.getType());
      if (!tensor_type) {
        // There are none type values.
        return;
      }
      if (!tensor_type.getElementType().isF32()) return;
    
      // If the result is consumed by a quantize op, it has been quantized.
      if (value.hasOneUse() &&
          llvm::isa<TFL::QuantizeOp>(*value.getUsers().begin()))
        return;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/ops/tf_quantize_op.cc

          mlir::dyn_cast<DenseElementsAttr>(Quantize(attr, shaped_quantized_type));
      if (!tensor_proto_attr) {
        return nullptr;
      }
    
      Type storage_type =
          mlir::cast<QuantizedType>(shaped_quantized_type.getElementType())
              .getStorageType();
      ShapedType new_type = shaped_quantized_type.clone(storage_type);
    
      rewriter.setInsertionPointAfter(op);
      auto const_op =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/stablehlo/passes/quantization_patterns.h

            if (mlir::isa<NoneType>(operand_type)) {
              inputs.push_back(operand);
              continue;
            }
    
            auto ele_type =
                mlir::cast<TensorType>(operand.getType()).getElementType();
            if (auto dq_op =
                    dyn_cast_or_null<DequantizeOpT>(operand.getDefiningOp())) {
              inputs.push_back(dq_op.getOperand());
            } else if (!ele_type.isF32()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc

        if (!splat_elements_attr) {
          return;
        }
        if (splat_elements_attr.getNumElements() == 1) {
          return;
        }
        auto element_type = splat_elements_attr.getType().getElementType();
        if (mlir::isa<ComplexType>(element_type) ||
            mlir::isa<quant::QuantizedType>(element_type)) {
          return;
        }
        op_builder->setInsertionPoint(const_op);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/codegen/JavadocUtils.java

            if (parameterInfo.getKind() == ParameterKindInfo.VARARG_METHOD_PARAMETER && renderVararg) {
                return CodeBlock.of("$T...", typeName(parameterInfo.getParameterType().getElementType()));
            }
            return CodeBlock.of("$T", typeName(parameterInfo.getParameterType()));
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 02 15:44:14 UTC 2023
    - 4.4K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/main/java/org/gradle/api/internal/plugins/DefaultArtifactPublicationSet.java

                    defaultArtifacts = null;
                    changingValue.handle(previousArtifacts);
                }
            }
    
            @Override
            public Class<? extends PublishArtifact> getElementType() {
                return PublishArtifact.class;
            }
    
            @Override
            public int size() {
                if (artifacts == null) {
                    return 0;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

        SmallVector<int64_t, 4> new_shape(permutation.size());
        for (size_t i = 0; i < permutation.size(); ++i)
          new_shape[i] = shape[permutation[i]];
    
        return RankedTensorType::get(new_shape, ranked_type.getElementType());
      }
    
      return type;
    }
    
    bool AreCancellablePermutations(DenseIntElementsAttr perm0,
                                    DenseIntElementsAttr perm1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/utils/const_tensor_utils.cc

    }
    
    StatusOr<mlir::ElementsAttr> ConvertIntBuffer(
        mlir::RankedTensorType shaped_type, const std::vector<uint8_t>& buffer,
        bool truncate) {
      mlir::Type elem_type = shaped_type.getElementType();
      unsigned bit_width;
      if (auto itype = mlir::dyn_cast<mlir::IntegerType>(elem_type)) {
        bit_width = itype.getWidth();
      } else if (auto qtype =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 07 23:04:40 UTC 2024
    - 16.6K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/quantization/common/ir/UniformSupport.cc

    }
    
    ExpressedToQuantizedConverter ExpressedToQuantizedConverter::forInputType(
        Type input_type) {
      if (isa<TensorType, VectorType>(input_type)) {
        Type element_type = cast<ShapedType>(input_type).getElementType();
        if (!isQuantizablePrimitiveType(element_type))
          return ExpressedToQuantizedConverter{input_type, nullptr};
        return ExpressedToQuantizedConverter{input_type, element_type};
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 08 02:10:16 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ScalarCollectionNodeInitializerExtractionStrategy.java

                        ScalarCollectionModelProjection.forList(schema.getElementType(), !writable),
                        new ModelElementProjection(schema.getType())
                    );
                } else {
                    return new ProjectionOnlyNodeInitializer(
                        ScalarCollectionModelProjection.forSet(schema.getElementType(), !writable),
                        new ModelElementProjection(schema.getType())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:15:09 UTC 2024
    - 12.7K bytes
    - Viewed (0)
Back to top