Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 101 for nd_array (0.48 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo_conversions/scatter.h

    // Convert updates into canonical form as expected by tf.scatter ops.
    //
    // tf.scatter expects `update_window_dims` to be the trailing dimensions.
    //
    // To support scatter ops generated by numpy-like slice updates:
    //   nd_array[:, [i,j]] = [i_values, j_values]
    //
    // `updates` must be transposed when the update_window_dims are the leading
    // dimensions of `updates`.
    //
    // Other values of `update_window_dims` are left unsupported.
    //
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.1K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradleModuleMetadataParser.java

            reader.beginArray();
            while (reader.peek() != JsonToken.END_ARRAY) {
                consumeVariant(reader, metadata);
            }
            reader.endArray();
        }
    
        private void consumeVariant(JsonReader reader, MutableModuleComponentResolveMetadata metadata) throws IOException {
            String variantName = null;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:07:04 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

              sample, signature_def
          )
          input_tensor_data = input_tensor.eval()
    
        self.assertLen(feed_dict, 1)
        self.assertIn('input:0', feed_dict)
        self.assertIsInstance(feed_dict['input:0'], np.ndarray)
        self.assertAllEqual(feed_dict['input:0'], input_tensor_data)
    
      @test_util.deprecated_graph_mode_only
      def test_create_feed_dict_from_input_data_empty(self):
        signature_def = meta_graph_pb2.SignatureDef(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. src/test/java/org/codelibs/core/collection/ArrayUtilTest.java

            final String[] newArray = ArrayUtil.remove(array, "333");
            assertThat(newArray.length, is(2));
            assertThat(newArray[0], is("111"));
            assertThat(newArray[1], is("222"));
        }
    
        /**
         * @throws Exception
         */
        @Test
        public void testRemoveNothing() throws Exception {
            final String[] array = new String[] { "111", "222", "333" };
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py

    from tensorflow.python.types import core
    from tensorflow.python.util import tf_export
    
    # A representative sample is a map of: input_key -> input_value.
    # Ex.: {'dense_input': tf.constant([1, 2, 3])}
    # Ex.: {'x1': np.ndarray([4, 5, 6]}
    RepresentativeSample = Mapping[str, core.TensorLike]
    
    # A representative dataset is an iterable of representative samples.
    RepresentativeDataset = Iterable[RepresentativeSample]
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri Mar 22 22:55:22 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiextensions-apiserver/pkg/registry/customresource/status_strategy_test.go

    	}{
    		{
    			name:    "bothValid",
    			old:     &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": "test/v1", "kind": "Foo", "numArray": []interface{}{1, 2}}},
    			obj:     &unstructured.Unstructured{Object: map[string]interface{}{"apiVersion": "test/v1", "kind": "Foo", "numArray": []interface{}{1, 3}, "metadata": map[string]interface{}{"resourceVersion": "1"}}},
    			isValid: true,
    		},
    		{
    			name:    "change to invalid",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Oct 18 22:16:10 UTC 2023
    - 6.9K bytes
    - Viewed (0)
  7. platforms/software/publish/src/main/java/org/gradle/api/publish/internal/metadata/JsonWriterScope.java

            jsonWriter.beginArray();
            contents.write();
            endArray();
        }
    
        protected void beginArray(String name) throws IOException {
            jsonWriter.name(name);
            jsonWriter.beginArray();
        }
    
        protected void endArray() throws IOException {
            jsonWriter.endArray();
        }
    
        protected void writeObject(String name, Contents contents) throws IOException {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 14:02:46 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/array.go

    package types2
    
    // An Array represents an array type.
    type Array struct {
    	len  int64
    	elem Type
    }
    
    // NewArray returns a new array type for the given element type and length.
    // A negative length indicates an unknown length.
    func NewArray(elem Type, len int64) *Array { return &Array{len: len, elem: elem} }
    
    // Len returns the length of array a.
    // A negative result indicates an unknown length.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 01 22:17:50 UTC 2021
    - 803 bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/collection/ArrayUtil.java

            final T[] newArray = (T[]) Array.newInstance(array.getClass().getComponentType(), array.length - 1);
            if (index > 0) {
                System.arraycopy(array, 0, newArray, 0, index);
            }
            if (index < array.length - 1) {
                System.arraycopy(array, index + 1, newArray, index, newArray.length - index);
            }
            return newArray;
        }
    
        /**
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/JsonModelWriter.kt

            var first = true
            list.forEach {
                if (first) first = false else comma()
                body(it)
            }
            endArray()
        }
    
        private
        fun beginArray() {
            write('[')
        }
    
        private
        fun endArray() {
            write(']')
        }
    
        private
        fun property(name: String, value: String) {
            property(name) { jsonString(value) }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
Back to top