How Add layers (with Keras) to my pytorch model
I would like to add more layers to this model, but I do not know how.
Here is my model with pytorch:
From Keras to Pytorch
I would like to write a ResNet50 pretrained model with Pytorch. So How can I transform this code writen with tensorflow and keras to Pytorch
Print loss at each epoch or each index_data in Pytorch
I’m newer in Pytorch, so please help, I’m confused about the position to calculate epoch_loss in training dataset:
‘TypeError: only integer tensors of a single element can be converted to an index’ while predicting text classes
Below is my code