Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 384 for ndarray (0.23 sec)

  1. 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)
  2. 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)
  3. tensorflow/compiler/mlir/quantization/tensorflow/calibrator/calibration_algorithm.py

        self._hist_mids = np.linspace(first_mid, last_mid, self._num_bins)
    
      def _get_dequantized_hist_mids_after_quantize(
          self, quant_min: float, quant_max: float
      ) -> np.ndarray:
        """Quantizes and dequantizes hist_mids using quant_min and quant_max.
    
        Quantization converts the range of numbers from [quant_min, quant_max] to
        [0, 2^num_bits - 1]. Values less than quant_min are converted to 0, and
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Mar 11 19:29:56 UTC 2024
    - 14.7K 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. src/go/types/array.go

    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.
    func (a *Array) Len() int64 { return a.len }
    
    // Elem returns element type of array a.
    func (a *Array) Elem() Type { return a.elem }
    
    func (a *Array) Underlying() Type { return a }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 927 bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. src/main/java/org/codelibs/core/collection/ArrayUtil.java

            assertArgumentNotNull("array", array);
            final boolean[] newArray = (boolean[]) Array.newInstance(boolean.class, array.length + 1);
            System.arraycopy(array, 0, newArray, 0, array.length);
            newArray[array.length] = value;
            return newArray;
        }
    
        /**
         * {@literal byte}配列の末尾に{@literal byte}の値を追加した配列を返します。
         *
         * @param array
    Registered: Wed Jun 12 12:50:12 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  9. test/named.go

    func main() {
    	var (
    		a     Array
    		b     Bool   = true
    		c     Chan   = make(Chan)
    		f     Float  = 1
    		i     Int    = 1
    		m     Map    = make(Map)
    		slice Slice  = make(Slice, 10)
    		str   String = "hello"
    	)
    
    	asArray(a)
    	isArray(a)
    	asArray(*&a)
    	isArray(*&a)
    	asArray(Array{})
    	isArray(Array{})
    
    	asBool(b)
    	isBool(b)
    	asBool(!b)
    	isBool(!b)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 4.6K bytes
    - Viewed (0)
  10. test/ken/array.go

    Rob Pike <******@****.***> 1330061064 +1100
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 05:24:24 UTC 2012
    - 2.3K bytes
    - Viewed (0)
Back to top