René's URL Explorer Experiment


Title: Linear Layers — PyTorch main documentation

Description: Linear layers in PyTorch C++ — Linear, Bilinear, and Flatten modules.

Keywords:

direct link

Domain: docs.pytorch.org


Hey, it has json ld scripts:
    {
       "@context": "https://schema.org",
       "@type": "Article",
       "name": "Linear Layers",
       "headline": "Linear Layers",
       "description": "Linear layers in PyTorch C++ \u2014 Linear, Bilinear, and Flatten modules.",
       "url": "/api/nn/linear.html",
       "articleBody": "Linear Layers# Linear layers apply affine transformations to input data: y = xW^T + b. They are the building blocks of fully-connected networks and are used for feature transformation, classification heads, and projection layers. Linear: Standard fully-connected layer Bilinear: Bilinear transformation of two inputs Identity: Pass-through layer (useful for skip connections) Flatten/Unflatten: Reshape tensors between convolutional and linear layers Linear# class Linear : public torch::nn::ModuleHolder\u003cLinearImpl\u003e# A ModuleHolder subclass for LinearImpl. See the documentation for LinearImpl class to learn what methods it provides, and examples of how to use Linear with torch::nn::LinearOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Types using Impl = LinearImpl# class LinearImpl : public torch::nn::Cloneable\u003cLinearImpl\u003e# Applies a linear transformation with optional bias. See https://pytorch.org/docs/main/generated/torch.nn.Linear.html to learn about the exact behavior of this module. See the documentation for torch::nn::LinearOptions class to learn what constructor arguments are supported for this module. Example: Linear model(LinearOptions(5, 2).bias(false)); Public Functions inline LinearImpl(int64_t in_features, int64_t out_features)# explicit LinearImpl(const LinearOptions \u0026options_)# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. void reset_parameters()# virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Linear module into the given stream. Tensor forward(const Tensor \u0026input)# Transforms the input tensor by multiplying with the weight and optionally adding the bias, if with_bias is true in the options. Public Members LinearOptions options# The options used to configure this module. Tensor weight# The learned weight. Tensor bias# The learned bias. If bias is false in the options, this tensor is undefined. Example: auto linear = torch::nn::Linear(torch::nn::LinearOptions(784, 256).bias(true)); auto output = linear-\u003eforward(input); // input: [N, 784] Bilinear# class Bilinear : public torch::nn::ModuleHolder\u003cBilinearImpl\u003e# A ModuleHolder subclass for BilinearImpl. See the documentation for BilinearImpl class to learn what methods it provides, and examples of how to use Bilinear with torch::nn::BilinearOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Types using Impl = BilinearImpl# class BilinearImpl : public torch::nn::Cloneable\u003cBilinearImpl\u003e# Applies a bilinear transformation with optional bias. See https://pytorch.org/docs/main/generated/torch.nn.Bilinear.html to learn about the exact behavior of this module. See the documentation for torch::nn::BilinearOptions class to learn what constructor arguments are supported for this module. Example: Bilinear model(BilinearOptions(3, 2, 4).bias(false)); Public Functions inline BilinearImpl(int64_t in1_features, int64_t in2_features, int64_t out_features)# explicit BilinearImpl(const BilinearOptions \u0026options_)# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. void reset_parameters()# virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Bilinear module into the given stream. Tensor forward(const Tensor \u0026input1, const Tensor \u0026input2)# Applies a bilinear transform on the input1 and input2 tensor by multiplying with the weight and optionally adding the bias, if with_bias is true in the options. Public Members BilinearOptions options# The options used to configure this module. Tensor weight# The learned weight. Tensor bias# The learned bias. If with_bias is false in the options, this tensor is undefined. Identity# class Identity : public torch::nn::ModuleHolder\u003cIdentityImpl\u003e# A ModuleHolder subclass for IdentityImpl. See the documentation for IdentityImpl class to learn what methods it provides, or the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Types using Impl = IdentityImpl# class IdentityImpl : public torch::nn::Cloneable\u003cIdentityImpl\u003e# A placeholder identity operator that is argument-insensitive. See https://pytorch.org/docs/main/generated/torch.nn.Identity.html to learn about the exact behavior of this module. Public Functions virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Identity module into the given stream. Tensor forward(const Tensor \u0026input)# Flatten# class Flatten : public torch::nn::ModuleHolder\u003cFlattenImpl\u003e# A ModuleHolder subclass for FlattenImpl. See the documentation for FlattenImpl class to learn what methods it provides, and examples of how to use Flatten with torch::nn::FlattenOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Types using Impl = FlattenImpl# class FlattenImpl : public torch::nn::Cloneable\u003cFlattenImpl\u003e# A placeholder for Flatten operator See https://pytorch.org/docs/main/generated/torch.nn.Flatten.html to learn about the exact behavior of this module. See the documentation for torch::nn::FlattenOptions class to learn what constructor arguments are supported for this module. Example: Flatten model(FlattenOptions().start_dim(2).end_dim(4)); Public Functions explicit FlattenImpl(const FlattenOptions \u0026options_ = {})# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Flatten module into the given stream. Tensor forward(const Tensor \u0026input)# Applies a flatten transform on the input. Public Members FlattenOptions options# The options used to configure this module. Unflatten# class Unflatten : public torch::nn::ModuleHolder\u003cUnflattenImpl\u003e# A ModuleHolder subclass for UnflattenImpl. See the documentation for UnflattenImpl class to learn what methods it provides, and examples of how to use Unflatten with torch::nn::UnflattenOptions. See the documentation for ModuleHolder to learn about PyTorch\u2019s module storage semantics. Public Types using Impl = UnflattenImpl# class UnflattenImpl : public torch::nn::Cloneable\u003cUnflattenImpl\u003e# A placeholder for unflatten operator See https://pytorch.org/docs/main/generated/torch.nn.Unflatten.html to learn about the exact behavior of this module. See the documentation for torch::nn::UnflattenOptions class to learn what constructor arguments are supported for this module. Example: Unflatten model(UnflattenOptions(0, {2, 2})); Public Functions inline UnflattenImpl(int64_t dim, std::vector\u003cint64_t\u003e sizes)# explicit UnflattenImpl(UnflattenOptions options_)# virtual void reset() override# reset() must perform initialization of all members with reference semantics, most importantly parameters, buffers and submodules. virtual void pretty_print(std::ostream \u0026stream) const override# Pretty prints the Unflatten module into the given stream. Tensor forward(const Tensor \u0026input)# Applies an unflatten transform on the input. Public Members UnflattenOptions options# The options used to configure this module.",
       "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/nn/linear.html"
       },
       "datePublished": "2023-01-01T00:00:00Z",
       "dateModified": "2023-01-01T00:00:00Z"
     }
 

docsearch:languageen
llm:site-typedocumentation
llm:frameworkPyTorch
llm:descriptionLinear layers in PyTorch C++ — Linear, Bilinear, and Flatten modules.
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/nn/linear.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
Neural Network Modules (torch::nn)https://docs.pytorch.org/cppdocs/api/nn/index.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#linear-layers
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#linear
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn6LinearE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_linear_impl
LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_linear_impl
Linearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_linear
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn6Linear4ImplE
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImplE
https://pytorch.org/docs/main/generated/torch.nn.Linear.htmlhttps://pytorch.org/docs/main/generated/torch.nn.Linear.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl10LinearImplE7int64_t7int64_t
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl10LinearImplERK13LinearOptions
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_linear_impl_1a6702a1d63bed9865d9505fac7cee4e54
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl16reset_parametersEv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn10LinearImpl12pretty_printERNSt7ostreamE
Linearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_linear
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/nn/linear.html#_CPPv4N5torch2nn10LinearImpl7forwardERK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl7optionsE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl6weightE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl4biasE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#bilinear
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8BilinearE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_bilinear_impl
BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_bilinear_impl
Bilinearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_bilinear
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8Bilinear4ImplE
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImplE
https://pytorch.org/docs/main/generated/torch.nn.Bilinear.htmlhttps://pytorch.org/docs/main/generated/torch.nn.Bilinear.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl12BilinearImplE7int64_t7int64_t7int64_t
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl12BilinearImplERK15BilinearOptions
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_bilinear_impl_1ac9ca0de13c1916f7a19504a0d7980bdb
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl16reset_parametersEv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn12BilinearImpl12pretty_printERNSt7ostreamE
Bilinearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_bilinear
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
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/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl7forwardERK6TensorRK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl7optionsE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl6weightE
Tensorhttps://docs.pytorch.org/cppdocs/api/aten/tensor.html#_CPPv46Tensorv
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl4biasE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#identity
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8IdentityE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_identity_impl
IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_identity_impl
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8Identity4ImplE
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImplE
https://pytorch.org/docs/main/generated/torch.nn.Identity.htmlhttps://pytorch.org/docs/main/generated/torch.nn.Identity.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_identity_impl_1a911f5c81a5b6d5d93f936d94c3699605
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn12IdentityImpl12pretty_printERNSt7ostreamE
Identityhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_identity
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/nn/linear.html#_CPPv4N5torch2nn12IdentityImpl7forwardERK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#flatten
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn7FlattenE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten_impl
FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten_impl
Flattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn7Flatten4ImplE
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImplE
Flattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten
https://pytorch.org/docs/main/generated/torch.nn.Flatten.htmlhttps://pytorch.org/docs/main/generated/torch.nn.Flatten.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl11FlattenImplERK14FlattenOptions
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten_impl_1a4decf839504bc4e226b7ed808cc77a47
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn11FlattenImpl12pretty_printERNSt7ostreamE
Flattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_flatten
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/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl7forwardERK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl7optionsE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#unflatten
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn12ModuleHolderE
UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn9UnflattenE
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_unflatten_impl
UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_unflatten_impl
Unflattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_unflatten
ModuleHolderhttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#PyTorchclasstorch_1_1nn_1_1_module_holder
UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn9Unflatten4ImplE
Cloneablehttps://docs.pytorch.org/cppdocs/api/nn/utilities.html#_CPPv4I0EN5torch2nn9CloneableE
UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImplE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImplE
https://pytorch.org/docs/main/generated/torch.nn.Unflatten.htmlhttps://pytorch.org/docs/main/generated/torch.nn.Unflatten.html
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl13UnflattenImplE7int64_tNSt6vectorI7int64_tEE
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl13UnflattenImplE16UnflattenOptions
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl5resetEv
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_unflatten_impl_1a36e6922ef72479f3098a64acea42cbe0
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn13UnflattenImpl12pretty_printERNSt7ostreamE
Unflattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#PyTorchclasstorch_1_1nn_1_1_unflatten
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/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl7forwardERK6Tensor
#https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl7optionsE
previous Pooling Layers https://docs.pytorch.org/cppdocs/api/nn/pooling.html
next Activation Functions https://docs.pytorch.org/cppdocs/api/nn/activation.html
PyData Sphinx Themehttps://pydata-sphinx-theme.readthedocs.io/en/stable/index.html
previous Pooling Layers https://docs.pytorch.org/cppdocs/api/nn/pooling.html
next Activation Functions https://docs.pytorch.org/cppdocs/api/nn/activation.html
Linearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#linear
torch::nn::Linearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn6LinearE
Implhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn6Linear4ImplE
torch::nn::LinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImplE
LinearImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl10LinearImplE7int64_t7int64_t
LinearImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl10LinearImplERK13LinearOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl5resetEv
reset_parameters()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl16reset_parametersEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn10LinearImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl7forwardERK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl7optionsE
weighthttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl6weightE
biashttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn10LinearImpl4biasE
Bilinearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#bilinear
torch::nn::Bilinearhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8BilinearE
Implhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8Bilinear4ImplE
torch::nn::BilinearImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImplE
BilinearImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl12BilinearImplE7int64_t7int64_t7int64_t
BilinearImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl12BilinearImplERK15BilinearOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl5resetEv
reset_parameters()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl16reset_parametersEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn12BilinearImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl7forwardERK6TensorRK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl7optionsE
weighthttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl6weightE
biashttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12BilinearImpl4biasE
Identityhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#identity
torch::nn::Identityhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8IdentityE
Implhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn8Identity4ImplE
torch::nn::IdentityImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImplE
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImpl5resetEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn12IdentityImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn12IdentityImpl7forwardERK6Tensor
Flattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#flatten
torch::nn::Flattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn7FlattenE
Implhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn7Flatten4ImplE
torch::nn::FlattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImplE
FlattenImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl11FlattenImplERK14FlattenOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl5resetEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn11FlattenImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl7forwardERK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn11FlattenImpl7optionsE
Unflattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#unflatten
torch::nn::Unflattenhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn9UnflattenE
Implhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn9Unflatten4ImplE
torch::nn::UnflattenImplhttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImplE
UnflattenImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl13UnflattenImplE7int64_tNSt6vectorI7int64_tEE
UnflattenImpl()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl13UnflattenImplE16UnflattenOptions
reset()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl5resetEv
pretty_print()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4NK5torch2nn13UnflattenImpl12pretty_printERNSt7ostreamE
forward()https://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl7forwardERK6Tensor
optionshttps://docs.pytorch.org/cppdocs/api/nn/linear.html#_CPPv4N5torch2nn13UnflattenImpl7optionsE
Show Source https://docs.pytorch.org/cppdocs/_sources/api/nn/linear.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.