Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for IntegerType (0.22 sec)

  1. staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation_test.go

    				"true": integerType, "false": integerType, "null": integerType, "in": integerType, "as": integerType,
    				"break": integerType, "const": integerType, "continue": integerType, "else": integerType,
    				"for": integerType, "function": integerType, "if": integerType, "import": integerType,
    				"let": integerType, "loop": integerType, "package": integerType, "namespace": integerType,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 17:14:10 UTC 2024
    - 159.9K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

          float const_value;
          if (failed(GetConstantSplatValue<float>(init_value, const_value)) ||
              const_value != 1.0)
            return failure();
        } else if (mlir::isa<IntegerType>(type) && type.isSignlessInteger()) {
          int32_t const_value;
          if (failed(GetConstantSplatValue<int32_t>(init_value, const_value)) ||
              const_value != 1)
            return failure();
        } else {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

      auto result_element_type =
          getType().cast<ShapedType>().getElementType().dyn_cast<IntegerType>();
      auto operand_element_type = getInput()
                                      .getType()
                                      .cast<ShapedType>()
                                      .getElementType()
                                      .dyn_cast<IntegerType>();
      // Returns nullptr if either result/operand element type is not integer.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

                                             .cast<QuantizedType>()
                                             .getStorageType()
                                             .cast<IntegerType>();
        if (!IsSupportedByTfliteQuantizeOrDequantizeOps(output_storage_type)) {
          LLVM_DEBUG(llvm::dbgs()
                     << "Failed to match storage type of output quantized type.\n");
          return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        if (!splat) return false;
        Type element_ty = splat.getType().getElementType();
        if (mlir::isa<FloatType>(element_ty))
          return splat.getSplatValue<llvm::APFloat>().isZero();
        if (mlir::isa<IntegerType>(element_ty))
          return splat.getSplatValue<llvm::APInt>().getSExtValue() == 0;
        return false;
      };
    
      for (const auto& it : llvm::enumerate(operands)) {
        if (IsKnownZero(it.value())) continue;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/ir/tfl_ops.td

        TFL_I32OrI64Tensor:$output
      );
    
      let hasOptions = 1;
    
      DerivedTFLiteTypeAttr output_type = DerivedTFLiteTypeAttr<[{
        return getResult().getType().cast<TensorType>().getElementType().
            cast<IntegerType>().getWidth() > 32 ? tflite::TensorType_INT64 :
                tflite::TensorType_INT32;
        }], [{
          TypeAttr::get(getResult().getType().cast<TensorType>().getElementType())
        }]>;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 19:09:08 UTC 2024
    - 186K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

      dimensions.reserve(rank);
      for (int i = 0; i < rank; ++i)
        dimensions.push_back(APInt(out_width, shape[i]));
    
      auto result_type = tensorflow::GetTypeFromTFTensorShape(
          {rank}, IntegerType::get(input_ty.getContext(), out_width));
      return DenseElementsAttr::get(result_type, dimensions);
    }
    
    OpFoldResult ShapeOp::fold(FoldAdaptor) {
      int width =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/transforms/optimize.cc

      auto element_type = mlir::cast<ShapedType>(value.getType()).getElementType();
    
      if (mlir::isa<FloatType>(element_type)) {
        return FloatValueEquals(value, raw_value);
      } else if (mlir::isa<IntegerType>(element_type)) {
        auto int_attr = mlir::dyn_cast_or_null<DenseIntElementsAttr>(value);
        if (!int_attr) return false;
    
        if (int_attr.isSplat()) {
          return int_attr.getSplatValue<APInt>() == raw_value;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 102.3K bytes
    - Viewed (0)
  9. doc/go1.17_spec.html

    func Alignof(variable ArbitraryType) uintptr
    func Offsetof(selector ArbitraryType) uintptr
    func Sizeof(variable ArbitraryType) uintptr
    
    type IntegerType int  // shorthand for an integer type; it is not a real type
    func Add(ptr Pointer, len IntegerType) Pointer
    func Slice(ptr *ArbitraryType, len IntegerType) []ArbitraryType
    </pre>
    
    <p>
    A <code>Pointer</code> is a <a href="#Pointer_types">pointer type</a> but a <code>Pointer</code>
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        }
        if (ftype.isF64()) {
          return tflite::TensorType_COMPLEX128;
        }
        return Status(absl::StatusCode::kInvalidArgument, "Unsupported type");
      } else if (auto itype = mlir::dyn_cast<mlir::IntegerType>(type)) {
        switch (itype.getWidth()) {
          case 1:
            return tflite::TensorType_BOOL;
          case 4:
            if (itype.isUnsigned()) {
              return Status(absl::StatusCode::kInvalidArgument,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
Back to top