MCPcopy Create free account
hub / github.com/branislav1991/PyTorchProjectFramework / set_input

Method set_input

models/base_model.py:37–43  ·  view source on GitHub ↗

Unpack input data from the dataloader and perform necessary pre-processing steps. The implementation here is just a basic setting of input and label. You may implement other functionality in your own model.

(self, input)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

validateFunction · 0.80
trainFunction · 0.80

Calls 1

transfer_to_deviceFunction · 0.90

Tested by

no test coverage detected