Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 87 for data_gen (0.14 sec)

  1. tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py

            for _ in range(num_samples)
        ]
    
        def data_gen() -> repr_dataset.RepresentativeDataset:
          for sample in samples:
            yield {'input_tensor': ops.convert_to_tensor(sample)}
    
        with self.session() as sess:
          new_repr_ds = repr_dataset.replace_tensors_by_numpy_ndarrays(
              data_gen(), sess
          )
    
          # The resulting dataset should not contain any tf.Tensors.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jan 04 07:35:19 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/quantization/stablehlo/python/integration_test/quantize_model_test.py

        ).astype(np.float32)
    
        def data_gen() -> repr_dataset.RepresentativeDataset:
          for _ in range(50):
            yield {'input_tensor': random_tensor_gen_fn()}
    
        dataset_path = self.create_tempfile('tfrecord').full_path
        path_map = {'serving_default': dataset_path}
        repr_dataset.TfRecordRepresentativeDatasetSaver(path_map).save(
            {'serving_default': data_gen()}
        )
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 14 06:31:57 UTC 2024
    - 51.4K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test.py

            op_set=quant_opts_pb2.TF,
        )
    
        data_gen = self._create_data_generator(
            input_key='x', shape=input_placeholder.shape
        )
    
        converted_model = quantize_model.quantize(
            self._input_saved_model_path,
            self._output_saved_model_path,
            quantization_options,
            representative_dataset=data_gen,
        )
    
        self.assertIsNotNone(converted_model)
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 03:36:50 UTC 2024
    - 235.6K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/concurrency_test.py

                      shape=[10], dtype=dtypes.float32, name='y'
                  ),
              ]
          )
          def add(self, x, y):
            res = math_ops.add(x, y)
            return {'output': res}
    
        def data_gen():
          for _ in range(255):
            yield {
                'x': ops.convert_to_tensor(
                    np.random.uniform(size=(10)).astype('f4')
                ),
                'y': ops.convert_to_tensor(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Sep 11 00:47:05 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/quantization/tensorflow/python/integration_test/quantize_model_test_base.py

          dtype: The type of the generated input - usually dtypes.float32 for float
            and dtypes.int64 for int
          num_examples: Number of examples in the representative dataset.
    
        Yields:
          data_gen: A `quantize_model._RepresentativeSample` filled with random
            values.
        """
        for _ in range(num_examples):
          yield {input_key: random_ops.random_uniform(shape, minval, maxval, dtype)}
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Mar 21 08:51:46 UTC 2024
    - 51.2K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/sys/unix/sockcmsg_unix.go

    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    // payload of the passed data length occupies.
    func CmsgSpace(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
    }
    
    func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. src/internal/zstd/window.go

    func (w *window) appendTo(buf []byte, from, to uint32) []byte {
    	dataLen := uint32(len(w.data))
    	from += uint32(w.off)
    	to += uint32(w.off)
    
    	wrap := false
    	if from > dataLen {
    		from -= dataLen
    		wrap = !wrap
    	}
    	if to > dataLen {
    		to -= dataLen
    		wrap = !wrap
    	}
    
    	if wrap {
    		buf = append(buf, w.data[from:]...)
    		return append(buf, w.data[:to]...)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 13:49:23 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/syscall/sockcmsg_unix.go

    // structure, taking into account any necessary alignment.
    func CmsgLen(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + datalen
    }
    
    // CmsgSpace returns the number of bytes an ancillary element with
    // payload of the passed data length occupies.
    func CmsgSpace(datalen int) int {
    	return cmsgAlignOf(SizeofCmsghdr) + cmsgAlignOf(datalen)
    }
    
    func (h *Cmsghdr) data(offset uintptr) unsafe.Pointer {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  9. src/crypto/cipher/fuzz_test.go

    		if testing.Short() {
    			timeout = time.NewTimer(10 * time.Millisecond)
    		} else {
    			timeout = time.NewTimer(2 * time.Second)
    		}
    
    		indata := make([]byte, datalen)
    		outgeneric := make([]byte, datalen)
    		outdata := make([]byte, datalen)
    
    	fuzzencrypt:
    		for {
    			select {
    			case <-timeout.C:
    				break fuzzencrypt
    			default:
    			}
    
    			rand.Read(indata[:])
    
    			cbcGeneric.CryptBlocks(indata, outgeneric)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 03 13:39:12 UTC 2022
    - 2K bytes
    - Viewed (0)
  10. src/main/webapp/js/admin/adminlte.min.js.map

    -------------------\n */\n\nconst ControlSidebar = (($) => {\n  /**\n   * Constants\n   * ====================================================\n   */\n\n  const NAME               = 'ControlSidebar'\n  const DATA_KEY           = 'lte.controlsidebar'\n  const EVENT_KEY          = `.${DATA_KEY}`\n  const JQUERY_NO_CONFLICT = $.fn[NAME]\n  const DATA_API_KEY       = '.data-api'\n\n  const Event = {\n    COLLAPSED: `collapsed${EVENT_KEY}`,\n    EXPANDED: `expanded${EVENT_KEY}`,\n  }\n\n  const Selector...
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Wed Feb 12 07:55:41 UTC 2020
    - 77K bytes
    - Viewed (0)
Back to top