Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for add_to_collection (0.26 sec)

  1. tensorflow/compiler/mlir/tensorflow/tests/tf_saved_model/hash_table_asset_v1.py

      table = tf.lookup.StaticVocabularyTable(table_initializer, num_oov_buckets=10)
      vocab_file_tensor = tf.convert_to_tensor(
          vocabulary_file, tf.string, name='asset_filepath')
      tf.add_to_collection(tf.GraphKeys.ASSET_FILEPATHS, vocab_file_tensor)
    
      x = tf.placeholder(tf.string, shape=(), name='input')
      r = table.lookup(x)
    
      tensor_info_x = tf.compat.v1.saved_model.utils.build_tensor_info(x)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Oct 31 08:49:35 UTC 2023
    - 3.2K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/tensorflow/python/save_model.py

        # the tensors that accept asset file paths.
        for asset_file_def in asset_file_defs:
          asset_any_proto = Any()
          asset_any_proto.Pack(asset_file_def)
          ops.add_to_collection(
              saved_model_constants.ASSETS_KEY,
              asset_any_proto,
          )
    
        model_saver = None
        # If `saver_def` is not None, it means there are variables in the graph.
        if saver_def:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 01:09:50 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/base-services/src/test/groovy/org/gradle/util/internal/GUtilTest.groovy

        }
    
        def "adds to collection"() {
            def list = [0]
            when:
            addToCollection(addToCollection(list, [1, 2]), [2, 3])
            then:
            list == [0, 1, 2, 2, 3]
        }
    
        def "adds empty list to collection"() {
            expect:
            addToCollection([], []) == []
            addToCollection([1], []) == [1]
        }
    
        def "adds to collection preventing nulls"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

            }
            return dest;
        }
    
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, Iterable<? extends V> src) {
            return addToCollection(dest, false, src);
        }
    
        @Deprecated
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, boolean failOnNull, Iterable<? extends V>... srcs) {
            for (Iterable<? extends V> src : srcs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/logging/src/main/java/org/gradle/util/GUtil.java

            }
            return dest;
        }
    
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, Iterable<? extends V> src) {
            return addToCollection(dest, false, src);
        }
    
        @Deprecated
        public static <V, T extends Collection<? super V>> T addToCollection(T dest, boolean failOnNull, Iterable<? extends V>... srcs) {
            for (Iterable<? extends V> src : srcs) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/process/internal/ProcessArgumentsSpec.java

                throw new IllegalArgumentException("args == null!");
            }
            args(Arrays.asList(args));
            return this;
        }
    
        public ProcessArgumentsSpec args(Iterable<?> args) {
            GUtil.addToCollection(arguments, true, args);
            return this;
        }
    
        public ProcessArgumentsSpec setArgs(List<String> arguments) {
            this.arguments.clear();
            args(arguments);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:52:06 UTC 2021
    - 3.4K bytes
    - Viewed (0)
  7. subprojects/core/src/main/java/org/gradle/process/internal/worker/DefaultWorkerProcessBuilder.java

        public Set<File> getApplicationClasspath() {
            return applicationClasspath;
        }
    
        @Override
        public WorkerProcessBuilder applicationModulePath(Iterable<File> files) {
            GUtil.addToCollection(applicationModulePath, files);
            return this;
        }
    
        @Override
        public Set<File> getApplicationModulePath() {
            return applicationModulePath;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 23 05:16:16 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/graph/CachingDirectedGraphWalker.java

            add(Arrays.asList(values));
            return this;
        }
    
        /**
         * Adds some start nodes.
         */
        public CachingDirectedGraphWalker<?, ?> add(Iterable<? extends N> values) {
            GUtil.addToCollection(startNodes, values);
            return this;
        }
    
        /**
         * Calculates the set of values of nodes reachable from the start nodes.
         */
        public Set<T> findValues() {
            try {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/api/internal/file/DefaultSourceDirectorySet.java

            source.addAll(Arrays.asList(srcDirs));
            return this;
        }
    
        @Override
        public SourceDirectorySet setSrcDirs(Iterable<?> srcPaths) {
            source.clear();
            GUtil.addToCollection(source, srcPaths);
            return this;
        }
    
        @Override
        public SourceDirectorySet source(SourceDirectorySet source) {
            this.source.add(source);
            return this;
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Oct 29 02:23:21 UTC 2023
    - 11.5K bytes
    - Viewed (0)
Back to top