error: RPC failed; curl 56 GnuTLS recv error (-9): A TLS packet with unexpected length was

If an error is reported in a large project of GIT clone, the data query should be caused by the insufficient default cache size of GIT clone
the solution is to increase the cache space:
git config — global http.postbuffer 1048576000
then an error is reported:
error: RPC failed; Curl 56 gnutls recv error (- 54): error in the pull function.
solution:
change HTTPS protocol to SSH
about to

git clone --branch v0.8.1 https://github.com/pytorch/vision torchvision

Change to

git clone --branch v0.8.1 git://github.com/pytorch/vision torchvision

Read More: