Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for data_gen (0.15 sec)

  1. 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)
  2. 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)
  3. src/cmd/compile/internal/ssa/debug.go

    			listSym.WriteCURelativeAddr(ctxt, listSym.Size, startPC, int64(end))
    		}
    
    		i += 2 * ctxt.Arch.PtrSize
    		datalen := 2 + int(ctxt.Arch.ByteOrder.Uint16(list[i:]))
    		listSym.WriteBytes(ctxt, listSym.Size, list[i:i+datalen]) // copy datalen and location encoding
    		i += datalen
    	}
    
    	// Location list contents, now with real PCs.
    	// End entry.
    	listSym.WriteInt(ctxt, listSym.Size, ctxt.Arch.PtrSize, 0)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 58.4K bytes
    - Viewed (0)
  4. cmd/test-utils_test.go

    }
    
    // calculateSignedChunkLength - calculates the length of the overall stream (data + metadata)
    func calculateStreamContentLength(dataLen, chunkSize int64) int64 {
    	if dataLen <= 0 {
    		return 0
    	}
    	chunksCount := dataLen / chunkSize
    	remainingBytes := dataLen % chunkSize
    	var streamLen int64
    	streamLen += chunksCount * calculateSignedChunkLength(chunkSize)
    	if remainingBytes > 0 {
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
Back to top