- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for data_gen (0.14 sec)
-
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) -
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) -
cmd/object-handlers_test.go
int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data), testCase.accessKey, testCase.secretKey) case testCase.contentEncoding == "": req, err = newTestStreamingSignedRequest(http.MethodPut, getPutObjectURL("", testCase.bucketName, testCase.objectName), int64(testCase.dataLen), testCase.chunkSize, bytes.NewReader(testCase.data),
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:50:49 UTC 2024 - 161.9K bytes - Viewed (0) -
src/debug/buildinfo/buildinfo.go
hdr, err := x.ReadData(addr, uint64(2*ptrSize)) if err != nil || len(hdr) < 2*ptrSize { return "" } dataAddr := readPtr(hdr) dataLen := readPtr(hdr[ptrSize:]) data, err := x.ReadData(dataAddr, dataLen) if err != nil || uint64(len(data)) < dataLen { return "" } return string(data) } // elfExe is the ELF implementation of the exe interface. type elfExe struct { f *elf.File }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 17:58:53 UTC 2024 - 12.6K bytes - Viewed (0) -
src/cmd/link/internal/ld/macho_combine_dwarf.go
WeakBindOff, WeakBindLen uint32 LazyBindOff, LazyBindLen uint32 ExportOff, ExportLen uint32 } type linkEditDataCmd struct { Cmd macho.LoadCmd Len uint32 DataOff, DataLen uint32 } type encryptionInfoCmd struct { Cmd macho.LoadCmd Len uint32 CryptOff, CryptLen uint32 CryptId uint32 } type uuidCmd struct { Cmd macho.LoadCmd
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 21 18:45:27 UTC 2024 - 13.3K bytes - Viewed (0) -
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) -
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) -
src/cmd/vendor/golang.org/x/sys/unix/ztypes_linux.go
Yday int32 Isdst int32 } type RTCWkAlrm struct { Enabled uint8 Pending uint8 Time RTCTime } type BlkpgIoctlArg struct { Op int32 Flags int32 Datalen int32 Data *byte } const ( BLKPG_ADD_PARTITION = 0x1 BLKPG_DEL_PARTITION = 0x2 BLKPG_RESIZE_PARTITION = 0x3 ) const ( NETNSA_NONE = 0x0
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jun 04 16:19:04 UTC 2024 - 251K bytes - Viewed (0)