convolutional neural networks listing - creating model instance and defining the loss function and optimizer #create model instance model convnet( to(device#define loss and optimizer criterion nn crossentropyloss(optimizer torch optim adam(model parameters()lr= print(modeloutput[listing - demonstrates training cnn model for defined number of epochs--in this casefive listing - training cnn model num_epochs train the model total_step len(train_loaderfor epoch in range(num_epochs)for (imageslabelsin enumerate(train_loader)images images to(devicelabels labels to(device