René's URL Explorer Experiment


Title: CUDA Utility Functions — PyTorch main documentation

Description: CUDA utility functions in PyTorch C++ — device properties, cuBLAS/cuDNN handles, and stream management.

Keywords:

direct link

Domain: docs.pytorch.org


Hey, it has json ld scripts:
    {
       "@context": "https://schema.org",
       "@type": "Article",
       "name": "CUDA Utility Functions",
       "headline": "CUDA Utility Functions",
       "description": "CUDA utility functions in PyTorch C++ \u2014 device properties, cuBLAS/cuDNN handles, and stream management.",
       "url": "/api/cuda/utilities.html",
       "articleBody": "CUDA Utility Functions# PyTorch provides utility functions for querying and managing CUDA devices, streams, and library handles. Device Management# c10::DeviceIndex torch::cuda::device_count()# Returns the number of CUDA devices available. int c10::cuda::current_device()# Returns the index of the current CUDA device. Example: #include \u003cc10/cuda/CUDAFunctions.h\u003e // Check available devices int num_devices = c10::cuda::device_count(); // Get current device int current = c10::cuda::current_device(); Device Properties# cudaDeviceProp *at::cuda::getCurrentDeviceProperties()# cudaDeviceProp *at::cuda::getDeviceProperties(c10::DeviceIndex device)# bool at::cuda::canDeviceAccessPeer(c10::DeviceIndex device, c10::DeviceIndex peer_device)# int at::cuda::warp_size()# Example: #include \u003cATen/cuda/CUDAContext.h\u003e // Query properties of the current device cudaDeviceProp* props = at::cuda::getCurrentDeviceProperties(); std::cout \u003c\u003c \"Device: \" \u003c\u003c props-\u003ename \u003c\u003c std::endl; std::cout \u003c\u003c \"Compute capability: \" \u003c\u003c props-\u003emajor \u003c\u003c \".\" \u003c\u003c props-\u003eminor \u003c\u003c std::endl; // Query a specific device cudaDeviceProp* dev1_props = at::cuda::getDeviceProperties(1); // Check peer access bool can_access = at::cuda::canDeviceAccessPeer(0, 1); Library Handles# These functions return handles for CUDA math libraries on the current device and stream. They are primarily useful when writing custom CUDA kernels that call cuBLAS, cuSPARSE, or cuSOLVER directly. cublasHandle_t at::cuda::getCurrentCUDABlasHandle(bool setup = true)# cublasLtHandle_t at::cuda::getCurrentCUDABlasLtHandle()# cusparseHandle_t at::cuda::getCurrentCUDASparseHandle()# cusolverDnHandle_t at::cuda::getCurrentCUDASolverDnHandle()# Example: #include \u003cATen/cuda/CUDAContext.h\u003e // Get cuBLAS handle for current device/stream cublasHandle_t handle = at::cuda::getCurrentCUDABlasHandle(); // Get cuSPARSE handle cusparseHandle_t sparse_handle = at::cuda::getCurrentCUDASparseHandle(); cuDNN Descriptors# When writing custom kernels that call cuDNN directly, PyTorch provides RAII wrapper classes for cuDNN descriptors. These are defined in ATen/cudnn/Descriptors.h. Descriptor (Base Class)# template\u003ctypename T, cudnnStatus_t (*ctor)(T**), cudnnStatus_t (*dtor)(T*)\u003eclass Descriptor# Public Functions inline T *desc() const# inline T *desc()# inline T *mut_desc()# A generic RAII wrapper for cuDNN descriptor types. Descriptors default construct to a nullptr and are initialized on first use via mut_desc(). Use desc() for read-only access. TensorDescriptor# class TensorDescriptor : public at::native::Descriptor\u003ccudnnTensorStruct, \u0026cudnnCreateTensorDescriptor, \u0026cudnnDestroyTensorDescriptor\u003e# Public Functions TensorDescriptor() = default# inline explicit TensorDescriptor(const at::Tensor \u0026t, size_t pad = 0)# void set(const at::Tensor \u0026t, size_t pad = 0)# void set(const at::Tensor \u0026t, at::MemoryFormat memory_format, size_t pad = 0)# void set(cudnnDataType_t dataType, IntArrayRef sizes, IntArrayRef strides, size_t pad = 0)# void print()# Wraps cudnnTensorDescriptor_t. Supports padding lower-dimensional tensors to meet cuDNN broadcasting requirements (see pad parameter). Example: #include \u003cATen/cudnn/Descriptors.h\u003e at::Tensor input = torch::randn({32, 3, 224, 224}, torch::kCUDA); at::native::TensorDescriptor desc(input); cudnnTensorDescriptor_t raw = desc.desc(); FilterDescriptor# class FilterDescriptor : public at::native::Descriptor\u003ccudnnFilterStruct, \u0026cudnnCreateFilterDescriptor, \u0026cudnnDestroyFilterDescriptor\u003e# Public Functions inline void set(const at::Tensor \u0026t, int64_t pad = 0)# void set(const at::Tensor \u0026t, const at::MemoryFormat memory_format, int64_t pad = 0)# void print()# Wraps cudnnFilterDescriptor_t for convolution filter weights. ConvolutionDescriptor# struct ConvolutionDescriptor : public at::native::Descriptor\u003ccudnnConvolutionStruct, \u0026cudnnCreateConvolutionDescriptor, \u0026cudnnDestroyConvolutionDescriptor\u003e# Public Functions inline void set(cudnnDataType_t dataType, int dim, int *pad, int *stride, int *upscale, int groups, bool allow_tf32)# Wraps cudnnConvolutionDescriptor_t. Configures padding, stride, dilation, groups, and math type (TF32, tensor ops) for convolution operations. RNNDataDescriptor# class RNNDataDescriptor : public at::native::Descriptor\u003ccudnnRNNDataStruct, \u0026cudnnCreateRNNDataDescriptor, \u0026cudnnDestroyRNNDataDescriptor\u003e# Public Functions void set(const at::Tensor \u0026t, cudnnRNNDataLayout_t layout, int maxSeqLength, int batchSize, int vectorSize, const int *seqLengthArray)# Wraps cudnnRNNDataDescriptor_t for variable-length sequence data. DropoutDescriptor# struct DropoutDescriptor : public at::native::Descriptor\u003ccudnnDropoutStruct, \u0026cudnnCreateDropoutDescriptor, \u0026cudnnDestroyDropoutDescriptor\u003e# Public Functions inline void initialize_rng(cudnnHandle_t handle, float dropout, long long int seed, const TensorOptions \u0026options)# inline void set(cudnnHandle_t handle, float dropout, const at::Tensor \u0026state)# inline void set_no_dropout(cudnnHandle_t handle)# Public Members at::Tensor state# Wraps cudnnDropoutDescriptor_t. Manages RNG state for cuDNN dropout. ActivationDescriptor# struct ActivationDescriptor : public at::native::Descriptor\u003ccudnnActivationStruct, \u0026cudnnCreateActivationDescriptor, \u0026cudnnDestroyActivationDescriptor\u003e# Public Functions inline void set(cudnnActivationMode_t mode)# Wraps cudnnActivationDescriptor_t. SpatialTransformerDescriptor# struct SpatialTransformerDescriptor : public at::native::Descriptor\u003ccudnnSpatialTransformerStruct, \u0026cudnnCreateSpatialTransformerDescriptor, \u0026cudnnDestroySpatialTransformerDescriptor\u003e# Public Functions inline void set(cudnnDataType_t dataType, int dim, int *size)# CTCLossDescriptor# struct CTCLossDescriptor : public at::native::Descriptor\u003ccudnnCTCLossStruct, \u0026cudnnCreateCTCLossDescriptor, \u0026cudnnDestroyCTCLossDescriptor\u003e# Public Functions inline void set(cudnnDataType_t datatype)# inline void setEx(cudnnDataType_t datatype, cudnnLossNormalizationMode_t normMode, cudnnNanPropagation_t gradMode)# inline void set_v8_v9(cudnnDataType_t datatype, cudnnLossNormalizationMode_t normMode, cudnnNanPropagation_t gradMode, int maxLabelLength)# Stream Management# CUDAStream c10::cuda::getDefaultCUDAStream(DeviceIndex device_index = -1)# Get the default CUDA stream, for the passed CUDA device, or for the current device if no device index is passed. The default stream is where most computation occurs when you aren\u2019t explicitly using streams. CUDAStream c10::cuda::getCurrentCUDAStream(DeviceIndex device_index = -1)# Get the current CUDA stream, for the passed CUDA device, or for the current device if no device index is passed. The current CUDA stream will usually be the default CUDA stream for the device, but it may be different if someone called \u2018setCurrentCUDAStream\u2019 or used \u2018StreamGuard\u2019 or \u2018CUDAStreamGuard\u2019. void c10::cuda::setCurrentCUDAStream(CUDAStream stream)# Set the current stream on the device of the passed in stream to be the passed in stream. Yes, you read that right: this function has nothing to do with the current device: it toggles the current stream of the device of the passed stream. Confused? Avoid using this function; prefer using \u2018CUDAStreamGuard\u2019 instead (which will switch both your current device and current stream in the way you expect, and reset it back to its original state afterwards). CUDAStream c10::cuda::getStreamFromPool(const bool isHighPriority = false, DeviceIndex device = -1)# Get a new stream from the CUDA stream pool. You can think of this as \u201ccreating\u201d a new stream, but no such creation actually happens; instead, streams are preallocated from the pool and returned in a round-robin fashion. You can request a stream from the high priority pool by setting isHighPriority to true, or a stream for a specific device by setting device (defaulting to the current CUDA stream.) CUDAStream c10::cuda::getStreamFromExternal(cudaStream_t ext_stream, DeviceIndex device_index)# Get a CUDAStream from a externally allocated one. This is mainly for interoperability with different libraries where we want to operate on a non-torch allocated stream for data exchange or similar purposes Example: #include \u003cc10/cuda/CUDAStream.h\u003e // Create and set custom stream auto stream = c10::cuda::getStreamFromPool(); c10::cuda::setCurrentCUDAStream(stream); // Get default stream auto default_stream = c10::cuda::getDefaultCUDAStream(); // Wrap an externally created CUDA stream cudaStream_t ext_stream; cudaStreamCreate(\u0026ext_stream); auto wrapped = c10::cuda::getStreamFromExternal(ext_stream, /*device_index=*/0);",
       "author": {
         "@type": "Organization",
         "name": "PyTorch Contributors",
         "url": "https://pytorch.org"
       },
       "image": "https://pytorch.org/docs/stable/_static/img/pytorch_seo.png",
       "mainEntityOfPage": {
         "@type": "WebPage",
         "@id": "/api/cuda/utilities.html"
       },
       "datePublished": "2023-01-01T00:00:00Z",
       "dateModified": "2023-01-01T00:00:00Z"
     }
 

docsearch:languageen
llm:site-typedocumentation
llm:frameworkPyTorch
llm:descriptionCUDA utility functions in PyTorch C++ — device properties, cuBLAS/cuDNN handles, and stream management.
llm:navigation-filehttps://pytorch.org/docs/stable/llms.txt
llm:sitemaphttps://pytorch.org/docs/stable/sitemap.xml
llm:versionmain
llm:projectPyTorch
llm:page-typedocumentation
og:imagehttps://docs.pytorch.org/docs/stable/_static/img/pytorch_seo.png
None3

Links:

Skip to main contenthttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#main-content
Home https://docs.pytorch.org/cppdocs/index.html
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
mainhttps://docs.pytorch.org/cppdocs/index.html
Installing C++ Distributions of PyTorch https://docs.pytorch.org/cppdocs/installing.html
The C++ Frontend https://docs.pytorch.org/cppdocs/frontend.html
C++ API Reference https://docs.pytorch.org/cppdocs/api/index.html
ATen: Tensor Library https://docs.pytorch.org/cppdocs/api/aten/index.html
C10: Core Utilities https://docs.pytorch.org/cppdocs/api/c10/index.html
Autograd: Automatic Differentiation https://docs.pytorch.org/cppdocs/api/autograd/index.html
CUDA Support https://docs.pytorch.org/cppdocs/api/cuda/index.html
XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Neural Network Modules (torch::nn) https://docs.pytorch.org/cppdocs/api/nn/index.html
Optimizers (torch::optim) https://docs.pytorch.org/cppdocs/api/optim/index.html
Data Loading (torch::data) https://docs.pytorch.org/cppdocs/api/data/index.html
Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Torch Library API https://docs.pytorch.org/cppdocs/api/library/index.html
Torch Stable API https://docs.pytorch.org/cppdocs/api/stable/index.html
FAQ https://docs.pytorch.org/cppdocs/faq.html
Go to pytorch.org https://pytorch.org
Xhttps://x.com/PyTorch
GitHubhttps://github.com/pytorch/pytorch
PyTorch Forumhttps://discuss.pytorch.org/
PyPihttps://pypi.org/project/torch/
ATen: Tensor Libraryhttps://docs.pytorch.org/cppdocs/api/aten/index.html
Tensor Classhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html
Tensor Creationhttps://docs.pytorch.org/cppdocs/api/aten/creation.html
Tensor Indexinghttps://docs.pytorch.org/cppdocs/api/aten/indexing.html
Tensor Accessorshttps://docs.pytorch.org/cppdocs/api/aten/accessors.html
C10: Core Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/index.html
Device and DeviceTypehttps://docs.pytorch.org/cppdocs/api/c10/device.html
Device Guardshttps://docs.pytorch.org/cppdocs/api/c10/guards.html
Streamshttps://docs.pytorch.org/cppdocs/api/c10/streams.html
Core Typeshttps://docs.pytorch.org/cppdocs/api/c10/types.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/c10/utilities.html
Autograd: Automatic Differentiationhttps://docs.pytorch.org/cppdocs/api/autograd/index.html
Gradient Computationhttps://docs.pytorch.org/cppdocs/api/autograd/gradient.html
Custom Autograd Functionshttps://docs.pytorch.org/cppdocs/api/autograd/custom_functions.html
Gradient Modeshttps://docs.pytorch.org/cppdocs/api/autograd/modes.html
CUDA Supporthttps://docs.pytorch.org/cppdocs/api/cuda/index.html
CUDA Streamshttps://docs.pytorch.org/cppdocs/api/cuda/streams.html
CUDA Guardshttps://docs.pytorch.org/cppdocs/api/cuda/guards.html
CUDA Utility Functionshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html
XPU Supporthttps://docs.pytorch.org/cppdocs/api/xpu/index.html
XPU Streamshttps://docs.pytorch.org/cppdocs/api/xpu/streams.html
XPU Utility Functionshttps://docs.pytorch.org/cppdocs/api/xpu/utilities.html
Neural Network Modules (torch::nn)https://docs.pytorch.org/cppdocs/api/nn/index.html
Containershttps://docs.pytorch.org/cppdocs/api/nn/containers.html
Convolution Layershttps://docs.pytorch.org/cppdocs/api/nn/convolution.html
Pooling Layershttps://docs.pytorch.org/cppdocs/api/nn/pooling.html
Linear Layershttps://docs.pytorch.org/cppdocs/api/nn/linear.html
Activation Functionshttps://docs.pytorch.org/cppdocs/api/nn/activation.html
Normalization Layershttps://docs.pytorch.org/cppdocs/api/nn/normalization.html
Dropout Layershttps://docs.pytorch.org/cppdocs/api/nn/dropout.html
Embedding Layershttps://docs.pytorch.org/cppdocs/api/nn/embedding.html
Recurrent Layershttps://docs.pytorch.org/cppdocs/api/nn/recurrent.html
Transformer Layershttps://docs.pytorch.org/cppdocs/api/nn/transformer.html
Loss Functionshttps://docs.pytorch.org/cppdocs/api/nn/loss.html
Functional APIhttps://docs.pytorch.org/cppdocs/api/nn/functional.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/nn/utilities.html
Optimizers (torch::optim)https://docs.pytorch.org/cppdocs/api/optim/index.html
Gradient Descent Optimizershttps://docs.pytorch.org/cppdocs/api/optim/gradient_descent.html
Adaptive Learning Rate Optimizershttps://docs.pytorch.org/cppdocs/api/optim/adaptive.html
Second-Order Optimizershttps://docs.pytorch.org/cppdocs/api/optim/second_order.html
Learning Rate Schedulershttps://docs.pytorch.org/cppdocs/api/optim/schedulers.html
Data Loading (torch::data)https://docs.pytorch.org/cppdocs/api/data/index.html
Datasetshttps://docs.pytorch.org/cppdocs/api/data/datasets.html
DataLoaderhttps://docs.pytorch.org/cppdocs/api/data/dataloader.html
Samplershttps://docs.pytorch.org/cppdocs/api/data/samplers.html
Transformshttps://docs.pytorch.org/cppdocs/api/data/transforms.html
Serialization (torch::serialize)https://docs.pytorch.org/cppdocs/api/serialize/index.html
Saving and Loadinghttps://docs.pytorch.org/cppdocs/api/serialize/save_load.html
Archiveshttps://docs.pytorch.org/cppdocs/api/serialize/archives.html
Checkpointshttps://docs.pytorch.org/cppdocs/api/serialize/checkpoints.html
Torch Library APIhttps://docs.pytorch.org/cppdocs/api/library/index.html
Operator Registrationhttps://docs.pytorch.org/cppdocs/api/library/registration.html
Custom Classeshttps://docs.pytorch.org/cppdocs/api/library/custom_classes.html
Library Versioninghttps://docs.pytorch.org/cppdocs/api/library/versioning.html
Torch Stable APIhttps://docs.pytorch.org/cppdocs/api/stable/index.html
Library Registration Macroshttps://docs.pytorch.org/cppdocs/api/stable/registration.html
Stable Operatorshttps://docs.pytorch.org/cppdocs/api/stable/operators.html
Utilitieshttps://docs.pytorch.org/cppdocs/api/stable/utilities.html
https://docs.pytorch.org/cppdocs/index.html
C++ API Referencehttps://docs.pytorch.org/cppdocs/api/index.html
CUDA Supporthttps://docs.pytorch.org/cppdocs/api/cuda/index.html
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#cuda-utility-functions
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#device-management
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N5torch4cuda12device_countEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda14current_deviceEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#device-properties
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentDevicePropertiesEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda19getDevicePropertiesEN3c1011DeviceIndexE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda19canDeviceAccessPeerEN3c1011DeviceIndexEN3c1011DeviceIndexE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda9warp_sizeEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#library-handles
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda24getCurrentCUDABlasHandleEb
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentCUDABlasLtHandleEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentCUDASparseHandleEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda28getCurrentCUDASolverDnHandleEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#cudnn-descriptors
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#descriptor-base-class
Thttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
Thttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
Thttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4NK2at6native10Descriptor4descEv
Thttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native10Descriptor4descEv
Thttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native10Descriptor8mut_descEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#tensordescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor16TensorDescriptorEv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor16TensorDescriptorERKN2at6TensorE6size_t
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setERKN2at6TensorE6size_t
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setERKN2at6TensorEN2at12MemoryFormatE6size_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setE15cudnnDataType_t11IntArrayRef11IntArrayRef6size_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor5printEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#filterdescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptorE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor3setERKN2at6TensorE7int64_t
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor3setERKN2at6TensorEKN2at12MemoryFormatE7int64_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor5printEv
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#convolutiondescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native21ConvolutionDescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native21ConvolutionDescriptor3setE15cudnnDataType_tiPiPiPiib
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#rnndatadescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17RNNDataDescriptorE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17RNNDataDescriptor3setERKN2at6TensorE20cudnnRNNDataLayout_tiiiPKi
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#dropoutdescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptorE
TensorOptionshttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at13TensorOptionsE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor14initialize_rngE13cudnnHandle_tfxRK13TensorOptions
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor3setE13cudnnHandle_tfRKN2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor14set_no_dropoutE13cudnnHandle_t
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv4N2at6TensorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor5stateE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#activationdescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native20ActivationDescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native20ActivationDescriptor3setE21cudnnActivationMode_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#spatialtransformerdescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native28SpatialTransformerDescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native28SpatialTransformerDescriptor3setE15cudnnDataType_tiPi
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#ctclossdescriptor
Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptorE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor3setE15cudnnDataType_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor5setExE15cudnnDataType_t28cudnnLossNormalizationMode_t21cudnnNanPropagation_t
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor9set_v8_v9E15cudnnDataType_t28cudnnLossNormalizationMode_t21cudnnNanPropagation_ti
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#stream-management
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#_CPPv4N3c104cuda10CUDAStreamE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20getDefaultCUDAStreamE11DeviceIndex
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#_CPPv4N3c104cuda10CUDAStreamE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20getCurrentCUDAStreamE11DeviceIndex
CUDAStreamGuardhttps://docs.pytorch.org/cppdocs/api/cuda/guards.html#PyTorchstructc10_1_1cuda_1_1_c_u_d_a_stream_guard
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#_CPPv4N3c104cuda10CUDAStreamE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20setCurrentCUDAStreamE10CUDAStream
CUDAStreamGuardhttps://docs.pytorch.org/cppdocs/api/cuda/guards.html#PyTorchstructc10_1_1cuda_1_1_c_u_d_a_stream_guard
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#_CPPv4N3c104cuda10CUDAStreamE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda17getStreamFromPoolEKb11DeviceIndex
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#_CPPv4N3c104cuda10CUDAStreamE
#https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda21getStreamFromExternalE12cudaStream_t11DeviceIndex
CUDAStreamhttps://docs.pytorch.org/cppdocs/api/cuda/streams.html#PyTorchclassc10_1_1cuda_1_1_c_u_d_a_stream
previous CUDA Guards https://docs.pytorch.org/cppdocs/api/cuda/guards.html
next XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
previous CUDA Guards https://docs.pytorch.org/cppdocs/api/cuda/guards.html
next XPU Support https://docs.pytorch.org/cppdocs/api/xpu/index.html
Device Managementhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#device-management
device_count()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N5torch4cuda12device_countEv
current_device()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda14current_deviceEv
Device Propertieshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#device-properties
getCurrentDeviceProperties()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentDevicePropertiesEv
getDeviceProperties()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda19getDevicePropertiesEN3c1011DeviceIndexE
canDeviceAccessPeer()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda19canDeviceAccessPeerEN3c1011DeviceIndexEN3c1011DeviceIndexE
warp_size()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda9warp_sizeEv
Library Handleshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#library-handles
getCurrentCUDABlasHandle()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda24getCurrentCUDABlasHandleEb
getCurrentCUDABlasLtHandle()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentCUDABlasLtHandleEv
getCurrentCUDASparseHandle()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda26getCurrentCUDASparseHandleEv
getCurrentCUDASolverDnHandle()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at4cuda28getCurrentCUDASolverDnHandleEv
cuDNN Descriptorshttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#cudnn-descriptors
Descriptor (Base Class)https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#descriptor-base-class
at::native::Descriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4I0_PF13cudnnStatus_tPP1TE_PF13cudnnStatus_tP1TEEN2at6native10DescriptorE
desc()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4NK2at6native10Descriptor4descEv
desc()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native10Descriptor4descEv
mut_desc()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native10Descriptor8mut_descEv
TensorDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#tensordescriptor
at::native::TensorDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptorE
TensorDescriptor()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor16TensorDescriptorEv
TensorDescriptor()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor16TensorDescriptorERKN2at6TensorE6size_t
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setERKN2at6TensorE6size_t
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setERKN2at6TensorEN2at12MemoryFormatE6size_t
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor3setE15cudnnDataType_t11IntArrayRef11IntArrayRef6size_t
print()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16TensorDescriptor5printEv
FilterDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#filterdescriptor
at::native::FilterDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor3setERKN2at6TensorE7int64_t
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor3setERKN2at6TensorEKN2at12MemoryFormatE7int64_t
print()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native16FilterDescriptor5printEv
ConvolutionDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#convolutiondescriptor
at::native::ConvolutionDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native21ConvolutionDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native21ConvolutionDescriptor3setE15cudnnDataType_tiPiPiPiib
RNNDataDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#rnndatadescriptor
at::native::RNNDataDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17RNNDataDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17RNNDataDescriptor3setERKN2at6TensorE20cudnnRNNDataLayout_tiiiPKi
DropoutDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#dropoutdescriptor
at::native::DropoutDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptorE
initialize_rng()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor14initialize_rngE13cudnnHandle_tfxRK13TensorOptions
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor3setE13cudnnHandle_tfRKN2at6TensorE
set_no_dropout()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor14set_no_dropoutE13cudnnHandle_t
statehttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17DropoutDescriptor5stateE
ActivationDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#activationdescriptor
at::native::ActivationDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native20ActivationDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native20ActivationDescriptor3setE21cudnnActivationMode_t
SpatialTransformerDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#spatialtransformerdescriptor
at::native::SpatialTransformerDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native28SpatialTransformerDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native28SpatialTransformerDescriptor3setE15cudnnDataType_tiPi
CTCLossDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#ctclossdescriptor
at::native::CTCLossDescriptorhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptorE
set()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor3setE15cudnnDataType_t
setEx()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor5setExE15cudnnDataType_t28cudnnLossNormalizationMode_t21cudnnNanPropagation_t
set_v8_v9()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N2at6native17CTCLossDescriptor9set_v8_v9E15cudnnDataType_t28cudnnLossNormalizationMode_t21cudnnNanPropagation_ti
Stream Managementhttps://docs.pytorch.org/cppdocs/api/cuda/utilities.html#stream-management
getDefaultCUDAStream()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20getDefaultCUDAStreamE11DeviceIndex
getCurrentCUDAStream()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20getCurrentCUDAStreamE11DeviceIndex
setCurrentCUDAStream()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda20setCurrentCUDAStreamE10CUDAStream
getStreamFromPool()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda17getStreamFromPoolEKb11DeviceIndex
getStreamFromExternal()https://docs.pytorch.org/cppdocs/api/cuda/utilities.html#_CPPv4N3c104cuda21getStreamFromExternalE12cudaStream_t11DeviceIndex
Show Source https://docs.pytorch.org/cppdocs/_sources/api/cuda/utilities.md.txt
ExecuTorchhttps://docs.pytorch.org/executorch
Helionhttps://docs.pytorch.org/helion
torchaohttps://docs.pytorch.org/ao
kinetohttps://github.com/pytorch/kineto
torchtitanhttps://github.com/pytorch/torchtitan
TorchRLhttps://docs.pytorch.org/rl
torchvisionhttps://docs.pytorch.org/vision
torchaudiohttps://docs.pytorch.org/audio
tensordicthttps://docs.pytorch.org/tensordict
PyTorch on XLA Deviceshttps://docs.pytorch.org/xla
View Docshttps://docs.pytorch.org/docs/stable/index.html
View Tutorialshttps://docs.pytorch.org/tutorials
View Resourceshttps://pytorch.org/resources
Privacy Policyhttps://www.linuxfoundation.org/privacy/
https://www.facebook.com/pytorch
https://twitter.com/pytorch
https://www.youtube.com/pytorch
https://www.linkedin.com/company/pytorch
https://pytorch.slack.com
https://pytorch.org/wechat
Policieshttps://www.linuxfoundation.org/legal/policies
Trademark Usagehttps://www.linuxfoundation.org/trademark-usage
Privacy Policyhttp://www.linuxfoundation.org/privacy
Cookies Policyhttps://opensource.fb.com/legal/cookie-policy
Sphinxhttps://www.sphinx-doc.org/
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html

Viewport: width=device-width, initial-scale=1


URLs of crawlers that visited me.