Create a custom predict function

Yes, you can access the .weight attribute and transform them to numpy arrays e.g. via:

arr = model.layer.weight.cpu().numpy()