Skip to content

Instantly share code, notes, and snippets.

@wngr
wngr / Dockerfile
Last active November 20, 2020 06:08
Compile PyTorch on Raspberry Pi 3
# if you want to cross compile, look into qemu
FROM resin/armv7hf-debian
WORKDIR /usr/src/app
RUN apt-get update && apt-get install -y git
# get v0.3.1 release
RUN git clone -b v0.3.1 --recursive https://github.com/pytorch/pytorch ./pytorch
WORKDIR /usr/src/app/pytorch
# https://github.com/pytorch/pytorch/issues/4472
RUN git config user.email foo@foo && git config user.name foo && git cherry-pick af8b64aadca379397ff27c135eccb1cfaee5f524

Keybase proof

I hereby claim:

  • I am wngr on github.
  • I am wngr (https://keybase.io/wngr) on keybase.
  • I have a public key whose fingerprint is 1C77 5A43 FBBA 9ADC B697 884C 5760 5BB3 1D0D BE9F

To claim this, I am signing this object: