RuntimeError: tried to construct a tensor from a int sequence, but found an item of type float at index (0)

I’m currently getting the above error when trying to fit a model on pytorch, and I have no idea how to fix it. Am hoping that any of you might have an idea to share or provide guidance on how to solve this.

The error dump is as below.

Actual code can be referred to here:

I’m currently using pytorch with fast,ai library in Windows 10 environment.