Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 6,963 for copyFn (0.3 sec)

  1. android/guava/src/com/google/common/collect/ImmutableSortedSet.java

       */
      public static <E> ImmutableSortedSet<E> copyOf(
          Comparator<? super E> comparator, Collection<? extends E> elements) {
        return copyOf(comparator, (Iterable<? extends E>) elements);
      }
    
      /**
       * Returns an immutable sorted set containing the elements of a sorted set, sorted by the same
       * {@code Comparator}. That behavior differs from {@link #copyOf(Iterable)}, which always uses the
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableSortedMultiset.java

       *     ImmutableSortedMultiset#copyOf(Comparable[])}.</b>
       */
      @DoNotCall("Elements must be Comparable. (Or, pass a Comparator to orderedBy or copyOf.)")
      @Deprecated
      // The usage of "Z" here works around bugs in Javadoc (JDK-8318093) and JDiff.
      public static <Z> ImmutableSortedMultiset<Z> copyOf(Z[] elements) {
        throw new UnsupportedOperationException();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Sun Jun 02 13:36:19 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ir/copy.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ir
    
    import (
    	"cmd/internal/src"
    )
    
    // Copy returns a shallow copy of n.
    func Copy(n Node) Node {
    	return n.copy()
    }
    
    // DeepCopy returns a “deep” copy of n, with its entire structure copied
    // (except for shared nodes like ONAME, ONONAME, OLITERAL, and OTYPE).
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 18:57:57 UTC 2023
    - 1K bytes
    - Viewed (0)
  4. src/internal/trace/batch.go

    	}
    
    	// Copy out the batch for later processing.
    	var data bytes.Buffer
    	data.Grow(int(size))
    	n, err := io.CopyN(&data, r, int64(size))
    	if n != int64(size) {
    		return batch{}, gen, fmt.Errorf("failed to read full batch: read %d but wanted %d", n, size)
    	}
    	if err != nil {
    		return batch{}, gen, fmt.Errorf("copying batch data: %w", err)
    	}
    
    	// Return the batch.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/clone_constants_for_better_clustering.h

    //    would increase the amount of work on GPU 0 waiting on work on GPU 1.
    //    However, cloning Const into two copies, one for GPU_0_Y and one for GPU_1
    //    will let us create one cluster containing {Const/copy_0, GPU_1} and
    //    another containing {Const/copy_1, GPU_0_X, GPU_0_Y}.
    //
    // We only clone small host constants now to avoid increasing memory consumption
    // too much.  Moreover, in practice the constants we have to duplicate are
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 19 23:57:44 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/DenseImmutableTable.java

        // 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;
        return ImmutableMap.<R, Map<C, V>>copyOf(rowMap);
      }
    
      @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 10K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableCollection.java

     *       access, and lastly speed of creation.
     *   <li>The {@code copyOf} methods will sometimes recognize that the actual copy operation is
     *       unnecessary; for example, {@code copyOf(copyOf(anArrayList))} should copy the data only
     *       once. This reduces the expense of habitually making defensive copies at API boundaries.
     *       However, the precise conditions for skipping the copy operation are undefined.
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableList.java

            ? copyOf((Collection<? extends E>) elements)
            : copyOf(elements.iterator());
      }
    
      /**
       * Returns an immutable list containing the given elements, in order.
       *
       * <p>Despite the method name, this method attempts to avoid actually copying the data when it is
       * safe to do so. The exact circumstances under which a copy will or will not be performed are
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed May 08 03:01:02 UTC 2024
    - 29.9K bytes
    - Viewed (0)
  9. src/os/dir.go

    // the file in fsys.
    //
    // Symbolic links in fsys are not supported, a *PathError with Err set
    // to ErrInvalid is returned on symlink.
    //
    // Copying stops at and returns the first error encountered.
    func CopyFS(dir string, fsys fs.FS) error {
    	return fs.WalkDir(fsys, ".", func(path string, d fs.DirEntry, err error) error {
    		if err != nil {
    			return err
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  10. staging/src/k8s.io/api/resource/v1alpha2/zz_generated.deepcopy.go

    	}
    	return
    }
    
    // DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AllocationResult.
    func (in *AllocationResult) DeepCopy() *AllocationResult {
    	if in == nil {
    		return nil
    	}
    	out := new(AllocationResult)
    	in.DeepCopyInto(out)
    	return out
    }
    
    // DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 33.5K bytes
    - Viewed (0)
Back to top