Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for scast (0.15 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. 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)
  3. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

      auto input_args_have_static_shape = [&]() -> bool {
        return mlir::cast<TensorType>(input_tensor.getType()).hasStaticShape() &&
               mlir::cast<TensorType>(kernel_tensor.getType()).hasStaticShape() &&
               mlir::cast<TensorType>(window_strides.getType()).hasStaticShape() &&
               mlir::cast<TensorType>(padding.getType()).hasStaticShape() &&
               mlir::cast<TensorType>(lhs_dilation.getType()).hasStaticShape() &&
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc

    // division can result in strange behavior.
    //
    //      floordiv = cast(floordiv(cast(left), cast(right))))
    //
    //   %left_cast = cast(%left)
    //   %right_cast = cast(%right)
    //   %div = div(%left, %left)
    //   %floored = floor(%div)
    //   %floored_cast = cast(%floored)
    //
    // Required to manually specify the intermediate types.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 291.8K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            /*
             * We have an Iterator<E> and want to cast it to
             * MultiExceptionListIterator. Because we're inside an
             * AbstractIteratorTester<E>, that's implicitly a cast to
             * AbstractIteratorTester<E>.MultiExceptionListIterator. The runtime
             * won't be able to verify the AbstractIteratorTester<E> part, so it's
             * an unchecked cast. We know, however, that the only possible value for
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

            /*
             * We have an Iterator<E> and want to cast it to
             * MultiExceptionListIterator. Because we're inside an
             * AbstractIteratorTester<E>, that's implicitly a cast to
             * AbstractIteratorTester<E>.MultiExceptionListIterator. The runtime
             * won't be able to verify the AbstractIteratorTester<E> part, so it's
             * an unchecked cast. We know, however, that the only possible value for
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Jun 11 16:13:05 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  7. platforms/core-runtime/tooling-api-provider/src/main/java/org/gradle/tooling/internal/provider/DefaultConnection.java

     */
    package org.gradle.tooling.internal.provider;
    
    import org.gradle.initialization.BuildCancellationToken;
    import org.gradle.initialization.BuildLayoutParameters;
    import org.gradle.internal.Cast;
    import org.gradle.internal.buildprocess.BuildProcessState;
    import org.gradle.internal.classpath.ClassPath;
    import org.gradle.internal.deprecation.DeprecationLogger;
    import org.gradle.internal.instrumentation.agent.AgentStatus;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/internal/passes/xla_broadcast.cc

      // mapping from original operand to new XlaAllReduce op.
      llvm::DenseMap<Value, Value> orig_to_new;
    
      for (Value bcast : bcasts) {
        if (failed(MoveBroadcastToCluster(builder, inner_builder, cluster,
                                          replicate, orig_to_new, bcast, module))) {
          return failure();
        }
      }
    
      cluster->walk([&](Operation* op) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 13 18:52:07 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  9. pkg/config/validation/validation.go

    			v = AppendValidation(v, fmt.Errorf("invalid gateway name: %q", name))
    		}
    		value, ok := cfg.Spec.(*networking.Gateway)
    		if !ok {
    			v = AppendValidation(v, fmt.Errorf("cannot cast to gateway: %#v", cfg.Spec))
    			return v.Unwrap()
    		}
    
    		if len(value.Servers) == 0 {
    			v = AppendValidation(v, fmt.Errorf("gateway must have at least one server"))
    		} else {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 04:03:33 UTC 2024
    - 107.2K bytes
    - Viewed (0)
  10. analysis/analysis-api-fe10/src/org/jetbrains/kotlin/analysis/api/descriptors/components/KtFe10ExpressionTypeProvider.kt

                    }
                }
    
                is KtBinaryExpressionWithTypeRHS -> {
                    val typeReference = parentExpression.right
                    if (KtPsiUtil.isCast(parentExpression) && typeReference != null) {
                        val bindingContext = analysisContext.analyze(typeReference)
                        var kotlinType = bindingContext[BindingContext.TYPE, typeReference]
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 11 15:45:42 UTC 2024
    - 15.4K bytes
    - Viewed (0)
Back to top