Open hasan-svg opened 7 months ago
If you can paste whole cell code and complete error, it is easy to help
I received this error a couple of times. Without more details difficult to pinpoint. When I got the errors most of the time the problem was with a conflicting 'type' Could be the way arguments/parameters are passed between functions. By default the objects created may have a type of 'any' which work in most cases but not in functions that are particular about a specific type. For example a transform result passed into another tool function may result in an not callable object due to the 'type' conflict in one of the parameters.
torch.manual_seed(42)
An epoch is one loop through the data...
epochs=1
Training
1. Loop through the data
for epoch in range(epochs):
Set the model to train mode