Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 334 for casts (0.05 sec)

  1. tensorflow/compiler/mlir/lite/tf_tfl_passes.cc

      pass_manager->addPass(
          mlir::tf_saved_model::CreateOptimizeGlobalTensorsPass());
    
      if (pass_config.shape_inference) {
        // Add a shape inference pass to optimize away the unnecessary casts.
        pass_manager->addPass(mlir::TF::CreateTFShapeInferencePass());
      }
    
      // Legalize while early to allow further constant folding.
      // TODO(jpienaar): This may not actually matter as we do canonicalization
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 18:45:51 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/CollectionUtils.java

    import java.util.List;
    import java.util.Map;
    import java.util.NoSuchElementException;
    import java.util.Optional;
    import java.util.Set;
    
    import static org.gradle.internal.Cast.cast;
    import static org.gradle.internal.Cast.castNullable;
    import static org.gradle.internal.Cast.uncheckedNonnullCast;
    
    @SuppressWarnings("join_with_collect")
    public abstract class CollectionUtils {
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

          Comparator<? super E> comparator, Iterable<? extends E> elements) {
        if (elements instanceof ImmutableSortedMultiset) {
          @SuppressWarnings("unchecked") // immutable collections are always safe for covariant casts
          ImmutableSortedMultiset<E> multiset = (ImmutableSortedMultiset<E>) elements;
          if (comparator.equals(multiset.comparator())) {
            if (multiset.isPartialView()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  4. 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)
  5. android/guava/src/com/google/common/hash/Striped64.java

      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/hash/Striped64.java

      transient volatile int busy;
    
      /** Package-private default constructor */
      Striped64() {}
    
      /** CASes the base field. */
      final boolean casBase(long cmp, long val) {
        return UNSAFE.compareAndSwapLong(this, baseOffset, cmp, val);
      }
    
      /** CASes the busy field from 0 to 1 to acquire lock. */
      final boolean casBusy() {
        return UNSAFE.compareAndSwapInt(this, busyOffset, 0, 1);
      }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Jun 07 22:25:23 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/apis/meta/v1/micro_time_test.go

    }
    
    func TestMicroTimeMarshalYAML(t *testing.T) {
    	cases := []struct {
    		input  MicroTime
    		result string
    	}{
    		{MicroTime{}, "t: null\n"},
    		{DateMicro(1998, time.May, 5, 1, 5, 5, 50, time.FixedZone("test", -4*60*60)), "t: \"1998-05-05T05:05:05.000000Z\"\n"},
    		{DateMicro(1998, time.May, 5, 5, 5, 5, 0, time.UTC), "t: \"1998-05-05T05:05:05.000000Z\"\n"},
    	}
    
    	for _, c := range cases {
    		input := MicroTimeHolder{c.input}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 21:48:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  8. src/crypto/x509/oid_test.go

    	}
    
    	for _, v := range oidTests {
    		oid, ok := newOIDFromDER(v.raw)
    		if !ok {
    			continue
    		}
    		cases = append(cases, struct {
    			in  string
    			out OID
    			err error
    		}{
    			in:  v.str,
    			out: oid,
    			err: nil,
    		})
    	}
    
    	for _, tt := range cases {
    		o, err := ParseOID(tt.in)
    		if err != tt.err {
    			t.Errorf("ParseOID(%q) = %v; want = %v", tt.in, err, tt.err)
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 19:10:38 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. cni/pkg/install/cniconfig_test.go

    				} else if len(c.expectedConfName) > 0 {
    					t.Fatalf("timed out waiting for expected %s", expectedFilepath)
    				} else {
    					// Successful test for test cases where CNI config file is never created
    					return
    				}
    			}
    
    			// Only for delayed cases
    			select {
    			case result := <-resultChan:
    				if result != expectedFilepath {
    					if len(expectedFilepath) > 0 {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 21 18:32:01 UTC 2024
    - 15.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apiserver/pkg/storage/cacher/watch_cache_interval_test.go

    	}
    
    	return nil
    }
    
    func TestIntervalBufferIsFull(t *testing.T) {
    	cases := []struct {
    		endIndex int
    		expected bool
    	}{
    		{endIndex: bufferSize - 1, expected: false},
    		{endIndex: bufferSize, expected: true},
    		{endIndex: bufferSize + 1, expected: true},
    	}
    
    	for _, c := range cases {
    		wcib := &watchCacheIntervalBuffer{endIndex: c.endIndex}
    		actual := wcib.isFull()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 09:20:10 UTC 2024
    - 11.6K bytes
    - Viewed (0)
Back to top