allow pkl in cpu mode when run in gpu
pynet/layer.py