Improve efficiency and refact LabelTensor, codacy correction and fix bug in PinaBatch

This commit is contained in:
FilippoOlivo
2024-10-23 15:04:28 +02:00
committed by Nicola Demo
parent ccc5f5a322
commit ea3d1924e7
13 changed files with 496 additions and 395 deletions

View File

@@ -32,11 +32,20 @@ class AbstractProblem(metaclass=ABCMeta):
# training all type self.collector.full, which returns true if all
# points are ready.
self.collector.store_fixed_data()
self._batching_dimension = 0
@property
def collector(self):
return self._collector
@property
def batching_dimension(self):
return self._batching_dimension
@batching_dimension.setter
def batching_dimension(self, value):
self._batching_dimension = value
# TODO this should be erase when dataloading will interface collector,
# kept only for back compatibility
@property