Where is the ATen C++ API Documentation

The following script builds doxygen for the ATen routines. This just contains prototypes but together with the pytorch python documentation, one can use the C++ ATen routines.


#! /usr/bin/env bash
set -e -u
#
# pytorch.git
echo 'Inialize pytorch.git'
if [ ! -e pytorch.git ]
then
    git clone https://github.com/pytorch/pytorch.git pytorch.git
fi
#
# doc_libtorch_cpp.log
logfile=$(pwd)/doc_libtorch_cpp.log
if [ -e $logfile ]; then rm $logfile ; fi
echo 'You can see the details of this process in another window using'
echo "tail -f $logfile"
#
cd pytorch.git
git reset --quiet --hard
#
# docs/cpp/source/Doxyfile
echo 'modify docs/cpp/source/Doxyfile'
sed -i docs/cpp/source/Doxyfile \
    -e 's|GENERATE_HTML *= *NO|GENERATE_HTML = YES|' \
    -e 's|GENERATE_XML *= *YES|GENERATE_XML = NO|' \
    -e 's|/build/aten/src/ATen/Functions.h|/build/aten/src/ATen|' \
    -e '/\/build\/aten\/src\/ATen\/*\.h$/d'
#
# build
echo 'build Aten sources'
if [ -e build ]; then rm -r build; fi
mkdir build
cd build
cmake .. >> $logfile 2>&1
make ATEN_CPU_FILES_GEN_TARGET >> $logfile 2>&1
cd ..
#
# docs/cpp/build
echo 'Run doxygen'
if [ -e docs/cpp/build ]; then rm -r docs/cpp/build; fi
cd docs/cpp/source
doxygen Doxyfile >> $logfile 2>&1
cd ../../..
#
# firefox
echo 'Display in firefox'
firefox docs/cpp/build/doxygen_html/index.html &
cat << EOF
This should have opened a window (or tab) with PyTorch Documentation.
If you enter 'linalg in the search box, 
you will see the linear algebra routines in the at (ATen) namespace.
EOF
echo 'doc_libtorch_cpp.sh: Done' >> $logfile 2>&1
echo 'doc_libtorch_cpp.sh: Done'