Thanks a lot for answering! I get :
predict is: tensor([[0.1559, 0.4340, 0.3785, 0.0226, 0.0032, 0.0519, 0.1933]],
device=‘cuda:0’, grad_fn=)
When tensor is converted to numpy:  predict is: [[-0.2556236   0.03545919 -0.38335416  0.3578361  -0.42080054  0.3241588
0.24587154]] .I want to get class label,and how can I predict class label?Thanks in advance!