René's URL Explorer Experiment


Title: Transforms — PyTorch main documentation

Description: Data transforms in PyTorch C++ — Stack, Normalize, Lambda, and Collate transforms for data pipelines.

Keywords:

direct link

Domain: docs.pytorch.org


Hey, it has json ld scripts:
    {
       "@context": "https://schema.org",
       "@type": "Article",
       "name": "Transforms",
       "headline": "Transforms",
       "description": "Data transforms in PyTorch C++ \u2014 Stack, Normalize, Lambda, and Collate transforms for data pipelines.",
       "url": "/api/data/transforms.html",
       "articleBody": "Transforms# Transforms apply preprocessing to data samples, such as normalization or augmentation. They can be chained using the .map() method on datasets. Transform (Base Class)# The base class for all transforms. Subclass this to create custom transforms. template\u003ctypename Input, typename Output\u003eclass Transform : public torch::data::transforms::BatchTransform\u003cstd::vector\u003cInput\u003e, std::vector\u003cOutput\u003e\u003e# A transformation of individual input examples to individual output examples. Just like a Dataset is a BatchDataset, a Transform is a BatchTransform that can operate on the level of individual examples rather than entire batches. The batch-level transform is implemented (by default) in terms of the example-level transform, though this can be customized. Public Types using InputType = Input# using OutputType = Output# Public Functions virtual OutputType apply(InputType input) = 0# Applies the transformation to the given input. inline virtual std::vector\u003cOutput\u003e apply_batch(std::vector\u003cInput\u003e input_batch) override# Applies the transformation over the entire input_batch. BatchTransform (Base Class)# Base class for transforms that operate on entire batches. template\u003ctypename InputBatch, typename OutputBatch\u003eclass BatchTransform# A transformation of a batch to a new batch. Subclassed by torch::data::transforms::Transform\u003c Example\u003c Tensor, Tensor \u003e, Example\u003c Tensor, Tensor \u003e \u003e, torch::data::transforms::Transform\u003c Input, Input \u003e, torch::data::transforms::Stack\u003c Example\u003c\u003e \u003e, torch::data::transforms::Stack\u003c TensorExample \u003e Public Types using InputBatchType = InputBatch# using OutputBatchType = OutputBatch# Public Functions virtual ~BatchTransform() = default# virtual OutputBatch apply_batch(InputBatch input_batch) = 0# Applies the transformation to the given input_batch. TensorTransform# Base class for transforms that operate on tensors specifically. template\u003ctypename Target = Tensor\u003eclass TensorTransform : public torch::data::transforms::Transform\u003cExample\u003cTensor, Tensor\u003e, Example\u003cTensor, Tensor\u003e\u003e# A Transform that is specialized for the typical Example\u003cTensor, Tensor\u003e combination. It exposes a single operator() interface hook (for subclasses), and calls this function on input Example objects. Public Types using E = Example\u003cTensor, Target\u003e# Public Functions virtual Tensor operator()(Tensor input) = 0# Transforms a single input tensor to an output tensor. inline virtual OutputType apply(InputType input) override# Implementation of Transform::apply that calls operator(). Normalize# Normalizes tensors with a given mean and standard deviation. template\u003ctypename Target = Tensor\u003estruct Normalize : public torch::data::transforms::TensorTransform\u003cTensor\u003e# Normalizes input tensors by subtracting the supplied mean and dividing by the given standard deviation. Public Functions inline Normalize(ArrayRef\u003cdouble\u003e mean, ArrayRef\u003cdouble\u003e stddev)# Constructs a Normalize transform. The mean and standard deviation can be anything that is broadcastable over the input tensors (like single scalars). inline virtual torch::Tensor operator()(Tensor input) override# Transforms a single input tensor to an output tensor. Public Members torch::Tensor mean# torch::Tensor stddev# Stack# Stacks a batch of tensors into a single tensor. template\u003ctypename T = Example\u003c\u003e\u003estruct Stack# Example: auto dataset = torch::data::datasets::MNIST(\"./data\") .map(torch::data::transforms::Normalize\u003c\u003e(0.5, 0.5)) .map(torch::data::transforms::Stack\u003c\u003e()); Lambda# template\u003ctypename Input, typename Output = Input\u003eclass Lambda : public torch::data::transforms::Transform\u003cInput, Input\u003e# Public Types using FunctionType = std::function\u003cOutput(Input)\u003e# Public Functions inline explicit Lambda(FunctionType function)# Constructs the Lambda from the given function object. inline virtual OutputType apply(InputType input) override# Applies the user-provided function object to the input. TensorLambda# template\u003ctypename Target = Tensor\u003eclass TensorLambda : public torch::data::transforms::TensorTransform\u003cTensor\u003e# A Lambda specialized for the typical Example\u003cTensor, Tensor\u003e input type. Public Types using FunctionType = std::function\u003cTensor(Tensor)\u003e# Public Functions inline explicit TensorLambda(FunctionType function)# Creates a TensorLambda from the given function. inline virtual Tensor operator()(Tensor input) override# Applies the user-provided functor to the input tensor. BatchLambda# template\u003ctypename Input, typename Output = Input\u003eclass BatchLambda : public torch::data::transforms::BatchTransform\u003cInput, Input\u003e# A BatchTransform that applies a user-provided functor to a batch. Public Types using FunctionType = std::function\u003cOutputBatchType(InputBatchType)\u003e# Public Functions inline explicit BatchLambda(FunctionType function)# Constructs the BatchLambda from the given function object. inline virtual OutputBatchType apply_batch(InputBatchType input_batch) override# Applies the user-provided function object to the input_batch. Chaining Transforms# Transforms can be chained together using .map(): auto dataset = torch::data::datasets::MNIST(\"./data\") .map(torch::data::transforms::Normalize\u003c\u003e(0.1307, 0.3081)) .map(torch::data::transforms::Stack\u003c\u003e());",
       "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/data/transforms.html"
       },
       "datePublished": "2023-01-01T00:00:00Z",
       "dateModified": "2023-01-01T00:00:00Z"
     }
 

docsearch:languageen
llm:site-typedocumentation
llm:frameworkPyTorch
llm:descriptionData transforms in PyTorch C++ — Stack, Normalize, Lambda, and Collate transforms for data pipelines.
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/data/transforms.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
Data Loading (torch::data)https://docs.pytorch.org/cppdocs/api/data/index.html
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#transforms
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#transform-base-class
BatchTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
Outputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
Transformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_transform
BatchTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_batch_transform
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform9InputTypeE
Outputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform10OutputTypeE
OutputTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform10OutputTypeE
InputTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform9InputTypeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform5applyE9InputType
Outputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform11apply_batchENSt6vectorI5InputEE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#batchtransform-base-class
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
torch::data::transforms::Transform< Example< Tensor, Tensor >, Example< Tensor, Tensor > >https://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_transform
torch::data::transforms::Transform< Input, Input >https://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_transform
InputBatchhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform14InputBatchTypeE
OutputBatchhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform15OutputBatchTypeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransformD0Ev
OutputBatchhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
InputBatchhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform11apply_batchE10InputBatch
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#tensortransform
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Transformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#_CPPv4I00EN5torch4data7ExampleE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#_CPPv4I00EN5torch4data7ExampleE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms15TensorTransformE
Transformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_transform
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#PyTorchstructtorch_1_1data_1_1_example
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#PyTorchstructtorch_1_1data_1_1_example
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#_CPPv4I00EN5torch4data7ExampleE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Targethttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms15TensorTransformE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransform1EE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransformclE6Tensor
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransform5applyE9InputType
Transform::applyhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_transform_1a796c543b4a87aca97df354b3d4b5f65a
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#normalize
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
TensorTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms15TensorTransformE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms9NormalizeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize9NormalizeE8ArrayRefIdE8ArrayRefIdE
Normalizehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchstructtorch_1_1data_1_1transforms_1_1_normalize
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9NormalizeclE6Tensor
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize4meanE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize6stddevE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#stack
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#_CPPv4I00EN5torch4data7ExampleE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms5StackE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#lambda
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
Transformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
Outputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda12FunctionTypeE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda12FunctionTypeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda6LambdaE12FunctionType
Lambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_lambda
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda5applyE9InputType
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#tensorlambda
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
TensorTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms15TensorTransformE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms12TensorLambdaE
Lambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_lambda
Examplehttps://docs.pytorch.org/cppdocs/api/data/datasets.html#PyTorchstructtorch_1_1data_1_1_example
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambda12FunctionTypeE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambda12FunctionTypeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambda12TensorLambdaE12FunctionType
TensorLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_tensor_lambda
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambdaclE6Tensor
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#batchlambda
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms11BatchLambdaE
BatchTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms11BatchLambdaE
Inputhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms11BatchLambdaE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms11BatchLambdaE
BatchTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_batch_transform
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda12FunctionTypeE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda12FunctionTypeE
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda11BatchLambdaE12FunctionType
BatchLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#PyTorchclasstorch_1_1data_1_1transforms_1_1_batch_lambda
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda11apply_batchE14InputBatchType
#https://docs.pytorch.org/cppdocs/api/data/transforms.html#chaining-transforms
previous Samplers https://docs.pytorch.org/cppdocs/api/data/samplers.html
next Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
previous Samplers https://docs.pytorch.org/cppdocs/api/data/samplers.html
next Serialization (torch::serialize) https://docs.pytorch.org/cppdocs/api/serialize/index.html
Transform (Base Class)https://docs.pytorch.org/cppdocs/api/data/transforms.html#transform-base-class
torch::data::transforms::Transformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms9TransformE
InputTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform9InputTypeE
OutputTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform10OutputTypeE
apply()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform5applyE9InputType
apply_batch()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Transform11apply_batchENSt6vectorI5InputEE
BatchTransform (Base Class)https://docs.pytorch.org/cppdocs/api/data/transforms.html#batchtransform-base-class
torch::data::transforms::BatchTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms14BatchTransformE
InputBatchTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform14InputBatchTypeE
OutputBatchTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform15OutputBatchTypeE
~BatchTransform()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransformD0Ev
apply_batch()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms14BatchTransform11apply_batchE10InputBatch
TensorTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#tensortransform
torch::data::transforms::TensorTransformhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms15TensorTransformE
Ehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransform1EE
operator()()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransformclE6Tensor
apply()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms15TensorTransform5applyE9InputType
Normalizehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#normalize
torch::data::transforms::Normalizehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms9NormalizeE
Normalize()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize9NormalizeE8ArrayRefIdE8ArrayRefIdE
operator()()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9NormalizeclE6Tensor
meanhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize4meanE
stddevhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms9Normalize6stddevE
Stackhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#stack
torch::data::transforms::Stackhttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms5StackE
Lambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#lambda
torch::data::transforms::Lambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms6LambdaE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda12FunctionTypeE
Lambda()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda6LambdaE12FunctionType
apply()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms6Lambda5applyE9InputType
TensorLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#tensorlambda
torch::data::transforms::TensorLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I0EN5torch4data10transforms12TensorLambdaE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambda12FunctionTypeE
TensorLambda()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambda12TensorLambdaE12FunctionType
operator()()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms12TensorLambdaclE6Tensor
BatchLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#batchlambda
torch::data::transforms::BatchLambdahttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4I00EN5torch4data10transforms11BatchLambdaE
FunctionTypehttps://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda12FunctionTypeE
BatchLambda()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda11BatchLambdaE12FunctionType
apply_batch()https://docs.pytorch.org/cppdocs/api/data/transforms.html#_CPPv4N5torch4data10transforms11BatchLambda11apply_batchE14InputBatchType
Chaining Transformshttps://docs.pytorch.org/cppdocs/api/data/transforms.html#chaining-transforms
Show Source https://docs.pytorch.org/cppdocs/_sources/api/data/transforms.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.