install pytorch c++ api CUDA11.4 for ubuntu
I'm trying to use the PyTorch c++ API on an ubuntu 18.04. I've installed CUDA 11.4 and cuDNN 8.2.4.15. The source I'm compiling is available here. compiling CUDA with nvcc works and the cuDNN installation test succeeds. But I am unable to find a good documentation for installing and compiling projects with PyTorch c++ api on Ubuntu. Do you know any god ones?
system configurations:
OS: ubuntu 18.04 
GPU: 1 x NVIDIA Tesla P4
Machine Type: n1-standard-2 (2 vCPUs, 7.5 GB memory) on google cloud console
CUDA: 11.4
cuDNN: 8.2.4.15

I used the next ones to install on Ubuntu 16, it can be helpful for you.

PyTorch C++ API Ubuntu Installation Guide
tutorial to compile and use pytorch on ubuntu 16.04

Also can it will be util to refer the official documentation to use PyTorch c++ for Linux systems and the GCPdocumentation.
