Mila
Deep Neural Network Library
Loading...
Searching...
No Matches
Linear.ixx File Reference

Implementation of the Linear (fully connected) module for neural networks. More...

#include <memory>
#include <vector>
#include <string>
#include <optional>
#include <iostream>
#include <sstream>
#include <type_traits>
#include <stdexcept>
import Compute.CudaMemoryResource;
import Compute.CpuMemoryResource;
import Compute.MemoryResource;
import Dnn.Modules.Linear:Config;
import Dnn.Module;
import Dnn.TensorTraits;
import Dnn.TensorHelpers;
import Serialization.ModelArchive;
import Compute.ComputeDevice;
import Dnn.Tensor;
import Compute.DeviceType;
import Compute.Precision;
import Compute.OperationBase;
import Compute.OperationAttributes;
import Compute.UnaryOperation;
import Compute.DeviceContext;
import Compute.OperationRegistry;

Classes

class  Mila::Dnn::Linear< TDeviceType, TInput, TOutput >
 A class representing a linear transformation module. More...
 

Namespaces

namespace  Mila
 
namespace  Mila::Dnn
 

Typedefs

template<typename TInput = float, typename TOutput = TInput>
using Mila::Dnn::CpuLinear = Linear< DeviceType::Cpu, TInput, TOutput >
 Type alias for CPU-based linear module with customizable tensor types.
 
template<typename TInput = float, typename TOutput = TInput>
using Mila::Dnn::CudaLinear = Linear< DeviceType::Cuda, TInput, TOutput >
 Type alias for CUDA-based linear module with customizable tensor types.
 

Detailed Description

Implementation of the Linear (fully connected) module for neural networks.