Data

DataLoader

onnxcustom.training.data_loader.OrtDataLoader (self, X, y, sample_weight = None, batch_size = 20, device = ‘cpu’, 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 C_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 C_OrtValue.