Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,582 for Cast (0.26 sec)

  1. platforms/core-runtime/stdlib-java-extensions/src/main/java/org/gradle/internal/Cast.java

         *
         * @param outputType The type to cast the input to
         * @param object The object to be cast (must not be {@code null})
         * @param <O> The type to be cast to
         * @param <I> The type of the object to be vast
         * @return The input object, cast to the output type
         */
        public static <O, I> O cast(Class<O> outputType, I object) {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/utils/validators.cc

        return false;
    
      if (mlir::cast<IntegerAttr>(elements.front()).getInt() != 1 ||
          mlir::cast<IntegerAttr>(elements.back()).getInt() != 1)
        return false;
    
      Builder b(op->getContext());
      *x = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[1]).getInt());
      *y = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[2]).getInt());
      *z = b.getI32IntegerAttr(mlir::cast<IntegerAttr>(elements[3]).getInt());
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  3. subprojects/core-api/src/test/groovy/org/gradle/api/internal/provider/views/AbstractHasMultiValuesPropertyCollectionViewTest.groovy

            then:
            property.get() == cast(["first", "second", "third", "forth", "fifth"])
    
            when:
            collection.remove("third")
    
            then:
            property.get() == cast(["first", "second", "forth", "fifth"])
            collection.size() == 4
    
            when:
            collection.add("third")
    
            then:
            property.get() == cast(["first", "second", "forth", "fifth", "third"])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 02 15:31:28 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/stablehlo/transforms/compose_uniform_quantized_type_pass.cc

          filter_i8_value_attr = mlir::cast<DenseIntElementsAttr>(
              cast<stablehlo::ConstantOp>(filter_op->getOperand(0).getDefiningOp())
                  .getValue());
        }
    
        // Create Uniform Quantized constant for the filter.
        auto subtract_op =
            cast<stablehlo::SubtractOp>(*op.getResult().user_begin());
        auto other_conv_op = cast<stablehlo::ConvolutionOp>(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 64.6K bytes
    - Viewed (0)
  5. platforms/core-runtime/stdlib-java-extensions/src/test/groovy/org/gradle/internal/CastTest.groovy

    package org.gradle.internal
    
    import spock.lang.Specification
    
    import static Cast.cast
    
    class CastTest extends Specification {
    
        def "casting"() {
            given:
            def arg = "1"
    
            when:
            cast(Integer, arg)
    
            then:
            def e = thrown(ClassCastException)
            e.message == "Failed to cast object $arg of type ${arg.class.name} to target type ${Integer.name}"
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 14:28:48 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/optimize_patterns.td

      "$0.isa<DenseElementsAttr>() && "
      "$0.cast<DenseElementsAttr>().getNumElements() == 1 && "
      "(($0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isLargest() && "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegative()) || "
      "$0.cast<DenseElementsAttr>().getValues<APFloat>()[0].isNegInfinity())">>;
    
    def L2NormValidReduceIndex : Constraint<CPred<
      "L2NormalizeReduceAxis($0, $1.cast<DenseElementsAttr>())">>;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 16 20:31:41 UTC 2024
    - 66.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc

        if (!mlir::cast<ShapedType>(lhs.getType()).hasStaticShape() ||
            !mlir::cast<ShapedType>(rhs.getType()).hasStaticShape() ||
            !mlir::cast<ShapedType>(cond.getType()).hasStaticShape()) {
          return rewriteOpWithDynamicInput(op, rewriter);
        }
    
        auto lhs_shape = mlir::cast<ShapedType>(lhs.getType()).getShape();
        auto rhs_shape = mlir::cast<ShapedType>(rhs.getType()).getShape();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 20:06:54 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/extensibility/ConventionAwareHelper.java

                MapProperty<Object, Object> asMapProperty = Cast.uncheckedNonnullCast(target);
                DefaultProvider<Map<Object, Object>> convention = new DefaultProvider<>(() -> Cast.uncheckedNonnullCast(mapping.getValue(_convention, _source)));
                asMapProperty.convention(convention);
            } else if (target instanceof HasMultipleValues) {
                HasMultipleValues<Object> asCollectionProperty = Cast.uncheckedNonnullCast(target);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 09:53:33 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/tasks/options/OptionValueNotationParserFactory.java

                return Cast.uncheckedCast(new NoDescriptionValuesJustReturningParser());
            } else if (targetType.isAssignableFrom(JavaVersion.class)) {
                NotationConverter<CharSequence, JavaVersion> converter = new JavaVersionFromCharSequenceNotationConverter();
                return Cast.uncheckedCast(new NotationConverterToNotationParserAdapter<>(converter));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 15:43:28 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/utils/utils.td

    // Attribute Constraint that checks if the attribute value is zero.
    def ZeroIntAttr
      : AttrConstraint<CPred<"$_self.cast<::mlir::IntegerAttr>().getInt() == 0">>;
    
    // Checks if the value has rank at most 'n'.
    class HasRankAtLeast<int n> : Constraint<
        CPred<"$0.getType().cast<ShapedType>().hasRank() && "
              "$0.getType().cast<ShapedType>().getRank() >= " # n>>;
    
    // Checks value is not produced by a TFL_Quant or
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 00:40:15 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top