atdata 0.1.3a2__py3-none-any.whl → 0.1.3a3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- atdata/dataset.py +10 -3
- {atdata-0.1.3a2.dist-info → atdata-0.1.3a3.dist-info}/METADATA +1 -1
- atdata-0.1.3a3.dist-info/RECORD +9 -0
- atdata-0.1.3a2.dist-info/RECORD +0 -9
- {atdata-0.1.3a2.dist-info → atdata-0.1.3a3.dist-info}/WHEEL +0 -0
- {atdata-0.1.3a2.dist-info → atdata-0.1.3a3.dist-info}/entry_points.txt +0 -0
- {atdata-0.1.3a2.dist-info → atdata-0.1.3a3.dist-info}/licenses/LICENSE +0 -0
atdata/dataset.py
CHANGED
|
@@ -501,10 +501,17 @@ class Dataset( Generic[ST] ):
|
|
|
501
501
|
"""
|
|
502
502
|
|
|
503
503
|
assert 'msgpack' in batch
|
|
504
|
-
batch_unpacked = [ self.sample_type.from_bytes( bs )
|
|
505
|
-
for bs in batch['msgpack'] ]
|
|
506
|
-
return SampleBatch[self.sample_type]( batch_unpacked )
|
|
507
504
|
|
|
505
|
+
if self._output_lens is None:
|
|
506
|
+
batch_unpacked = [ self.sample_type.from_bytes( bs )
|
|
507
|
+
for bs in batch['msgpack'] ]
|
|
508
|
+
return SampleBatch[self.sample_type]( batch_unpacked )
|
|
509
|
+
|
|
510
|
+
batch_source = [ self._output_lens.source_type.from_bytes( bs )
|
|
511
|
+
for bs in batch['msgpack'] ]
|
|
512
|
+
batch_view = [ self._output_lens( s )
|
|
513
|
+
for s in batch_source ]
|
|
514
|
+
return SampleBatch[self.sample_type]( batch_view )
|
|
508
515
|
|
|
509
516
|
# # @classmethod
|
|
510
517
|
# def wrap_batch( self, batch: WDSRawBatch ) -> BT:
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
atdata/__init__.py,sha256=V2qBg7i2mfCNG9nww6Gi_fDp7iwolDMrNzhmNO6VA7M,233
|
|
2
|
+
atdata/_helpers.py,sha256=R63JhXewAKZYnZ9Th7R6yZh0IOUPYGBsth3FpRUMD-U,503
|
|
3
|
+
atdata/dataset.py,sha256=0qD6t6axW1DZyVK2ZYcTrLGQE-Mb-Ti65vcaUPM5oqk,17051
|
|
4
|
+
atdata/lens.py,sha256=bGlxQ6PEnLj5poQ41DHj1LfpsmI5fELnjnUf4qXOsCo,5304
|
|
5
|
+
atdata-0.1.3a3.dist-info/METADATA,sha256=3rWXBavscvI9CS938f5rzWv6lDcrwmSVwfeQfOb6R4w,529
|
|
6
|
+
atdata-0.1.3a3.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
+
atdata-0.1.3a3.dist-info/entry_points.txt,sha256=6-iQr1veSTq-ac94bLyfcyGHprrZWevPEd12BWX37tQ,39
|
|
8
|
+
atdata-0.1.3a3.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
9
|
+
atdata-0.1.3a3.dist-info/RECORD,,
|
atdata-0.1.3a2.dist-info/RECORD
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
atdata/__init__.py,sha256=V2qBg7i2mfCNG9nww6Gi_fDp7iwolDMrNzhmNO6VA7M,233
|
|
2
|
-
atdata/_helpers.py,sha256=R63JhXewAKZYnZ9Th7R6yZh0IOUPYGBsth3FpRUMD-U,503
|
|
3
|
-
atdata/dataset.py,sha256=brNKGMkA_au2nLF5oUmjwub1E08DVwBKl9PnzPV6rPM,16722
|
|
4
|
-
atdata/lens.py,sha256=bGlxQ6PEnLj5poQ41DHj1LfpsmI5fELnjnUf4qXOsCo,5304
|
|
5
|
-
atdata-0.1.3a2.dist-info/METADATA,sha256=pYLvssfCzaiqer4yZQM3vh7nRlP8ZcEutXA8po7GZC0,529
|
|
6
|
-
atdata-0.1.3a2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
7
|
-
atdata-0.1.3a2.dist-info/entry_points.txt,sha256=6-iQr1veSTq-ac94bLyfcyGHprrZWevPEd12BWX37tQ,39
|
|
8
|
-
atdata-0.1.3a2.dist-info/licenses/LICENSE,sha256=Pz2eACSxkhsGfW9_iN60pgy-enjnbGTj8df8O3ebnQQ,16726
|
|
9
|
-
atdata-0.1.3a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|