/usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/api/include/torch
NameSizeModeActions
data/-0755rm
detail/-0755rm
nn/-0755rm
optim/-0755rm
serialize/-0755rm
all.h4920644editdlrm
arg.h12190644editdlrm
autograd.h1720644editdlrm
cuda.h7520644editdlrm
data.h3010644editdlrm
enum.h61840644editdlrm
expanding_array.h65800644editdlrm
fft.h98990644editdlrm
imethod.h15360644editdlrm
jit.h9270644editdlrm
linalg.h190260644editdlrm
nn.h2510644editdlrm
optim.h3300644editdlrm
ordered_dict.h165670644editdlrm
python.h97430644editdlrm
serialize.h51960644editdlrm
special.h154900644editdlrm
torch.h1540644editdlrm
types.h20700644editdlrm
utils.h34890644editdlrm
version.h2420644editdlrm
Edit: /usr/local/lib64/python3.6/site-packages/torch/include/torch/csrc/api/include/torch/cuda.h (752B)
#pragma once #include #include #include namespace torch { namespace cuda { /// Returns the number of CUDA devices available. size_t TORCH_API device_count(); /// Returns true if at least one CUDA device is available. bool TORCH_API is_available(); /// Returns true if CUDA is available, and CuDNN is available. bool TORCH_API cudnn_is_available(); /// Sets the seed for the current GPU. void TORCH_API manual_seed(uint64_t seed); /// Sets the seed for all available GPUs. void TORCH_API manual_seed_all(uint64_t seed); /// Waits for all kernels in all streams on a CUDA device to complete. void TORCH_API synchronize(int64_t device_index = -1); } // namespace cuda } // namespace torch