add #pragma once for header file in example 42 (#698)

This commit is contained in:
Wenzhuo Liu
2022-11-16 11:50:24 +08:00
committed by GitHub
parent 06eb90cc0d
commit 3c90f6aea6

View File

@ -1,3 +1,5 @@
#pragma once
#ifdef HAS_PYTORCH
#include <ATen/ATen.h>
#include <ATen/cuda/CUDAContext.h>