Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 3,659 for casts (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. src/cmd/fix/cftype.go

    							e.Set(reflect.ValueOf(r))
    							changed = true
    						}
    					}
    				}
    			}
    		})
    	}
    
    	// step 3: fix up invalid casts.
    	// It used to be ok to cast between *unsafe.Pointer and *C.CFTypeRef in a single step.
    	// Now we need unsafe.Pointer as an intermediate cast.
    	// (*unsafe.Pointer)(x) where x is type *bad -> (*unsafe.Pointer)(unsafe.Pointer(x))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 00:25:49 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/InternalTransformers.java

         * Creates a transformer that simply type casts the input to the given output type.
         *
         * @param outputType The type to cast the input to
         * @param <O> The type of the transformed object
         * @param <I> The type of the object to be transformed
         * @return A transformer that simply type casts the input to the given output type.
         */
        public static <O, I> InternalTransformer<O, I> cast(Class<O> outputType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  4. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtSmartCastProvider.kt

         *
         * ```kt
         * if (this is String) {
         *   this.substring() // 'this' receiver is explicit, so no implicit smart-cast here.
         *
         *   smartcast() // 'this' receiver is implicit, therefore there is implicit smart-cast involved.
         * }
         * ```
         */
        public fun KtExpression.getImplicitReceiverSmartCast(): Collection<KaImplicitReceiverSmartCast> =
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed May 22 06:28:35 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  5. src/cmd/cgo/internal/test/issue30527.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build cgo
    
    // Issue 30527: function call rewriting casts untyped
    // constants to int because of ":=" usage.
    
    package cgotest
    
    import "cmd/cgo/internal/test/issue30527"
    
    func issue30527G() {
    	issue30527.G(nil)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 376 bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/cel/library/cost_test.go

    				},
    			},
    		},
    	}
    	for _, tc := range cases {
    		for _, op := range tc.opts {
    			for _, typ := range tc.costs {
    				t.Run(typ.comparableLiteral+op, func(t *testing.T) {
    					e := typ.comparableLiteral + op
    					testCost(t, e, typ.expectedEstimatedCost, typ.expectedRuntimeCost)
    				})
    			}
    		}
    	}
    }
    
    func TestIndexOfCost(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Apr 23 17:22:44 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/cast_bf16_ops_to_f32.cc

      StringRef getArgument() const final {
        // This is the argument used to refer to the pass in
        // the textual format (on the commandline for example).
        return "quant-cast-bf16-ops-to-f32";
      }
      StringRef getDescription() const final {
        return "Cast BF16 operations to F32.";
      }
    
      void runOnOperation() override;
    };
    
    class CastBf16OpsToF32 : public RewritePattern {
     public:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Dec 10 05:52:02 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/quantization/ir/Passes.td

    }
    
    def QuantConvertSimulatedQuant
        : Pass<"quant-convert-simulated-quantization", "func::FuncOp"> {
      let summary = "Converts training-time simulated quantization ops to "
                    "corresponding quantize/dequantize casts";
      let constructor = "mlir::quantfork::createConvertSimulatedQuantPass()";
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Jul 29 18:55:28 UTC 2022
    - 1.3K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/internal/Transformers.java

         * Creates a transformer that simply type casts the input to the given output type.
         *
         * @param outputType The type to cast the input to
         * @param <O> The type of the transformed object
         * @param <I> The type of the object to be transformed
         * @return A transformer that simply type casts the input to the given output type.
         */
        public static <O, I> Transformer<O, I> cast(Class<O> outputType) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 15 23:29:03 UTC 2022
    - 5.3K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/SparseImmutableTable.java

      }
    
      @Override
      public ImmutableMap<C, Map<R, V>> columnMap() {
        // Casts without copying.
        ImmutableMap<C, ImmutableMap<R, V>> columnMap = this.columnMap;
        return ImmutableMap.<C, Map<R, V>>copyOf(columnMap);
      }
    
      @Override
      public ImmutableMap<R, Map<C, V>> rowMap() {
        // Casts without copying.
        ImmutableMap<R, ImmutableMap<C, V>> rowMap = this.rowMap;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top