I am using acer nitro 5 ryzen 5 AN515-42 (2018) model, which has ryzen 2500u, vega8 igpu, rx560x as dgpu on ubuntu 20.04.2
I tried to install pytorch with rocm4.0(beta), with no rocm installation ever, (should i try to download rocm, from  laptop has anaconda installed. There are 2 commands as given in the getting started document- Start Locally | PyTorch 1
command1 - was successful
command 2 - pip3 install ninja && pip3 install ‘git+https://github.com/pytorch/vision.git@v0.9.1’
which got error-ed out  ( ninja got installed properly)
(adding ss, as more than 2 links for new accounts is not allowed, F
Also, i dont know how to get logs too)

Screenshot from 2021-04-30 20-54-581366×768 137 KB