I use another function to deal with some irregularities arising from dataloaders, but for this I guess this is enough for the minimal model. So run_model will be equivalent to what you usually do in train(). Thanks
#with src_batch and tar_batch in shape 5x128x128
model = Net(8)
run_model(model, src_batch, tar_batch)```