DataLoader

onnxcustom.training.data_loader.OrtDataLoader (self, X, y, batch_size = 20, device = ‘cpu’, device_index = 0, random_iter = True)

Draws consecutive random observations from a dataset by batch. It iterates over the datasets by drawing batch_size consecutive observations.

iter_bind (self, bind, names)

Iterates over the datasets by drawing batch_size consecutive observations. Modifies a bind structure.

iter_numpy (self)

Iterates over the datasets by drawing batch_size consecutive observations. This iterator is slow as it copies the data of every batch. The function yields :eplg:`OrtValue`.

iter_ortvalue (self)

Iterates over the datasets by drawing batch_size consecutive observations. This iterator is slow as it copies the data of every batch. The function yields :eplg:`OrtValue`.