Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for add_to_collection (0.29 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. 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)
  3. 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)
  4. 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)
Back to top