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

Device-templated Residual connection component. More...

#include <memory>
#include <vector>
#include <string>
#include <iostream>
#include <sstream>
#include <type_traits>
#include <stdexcept>
#include <cstdint>
#include <optional>
#include <format>
#include <algorithm>
import Logging.Logger;
import Serialization.ModelArchive;
import Compute.CpuMemoryResource;
import Compute.BinaryOperation;
import Compute.OperationTraits;
import Compute.UnaryOperation;
import Dnn.Components.ResidualConfig;
import Compute.ExecutionContextFactory;
import Dnn.ITensor;
import Dnn.Component;
import Compute.DeviceTypeTraits;
import Dnn.ComponentType;
import Dnn.TensorDataType;
import Dnn.Tensor;
import Dnn.TensorDataTypeTraits;
import Dnn.TensorTypes;
import Dnn.Components.Linear;
import Serialization.Mode;
import Compute.MemoryResource;
import Compute.Device;
import Compute.DeviceId;
import Compute.DeviceType;
import Compute.IExecutionContext;

Classes

class  Mila::Dnn::Residual< TDeviceType, TPrecision >
 Device-templated Residual connection component. More...

Namespaces

namespace  Mila
 Mila main API namespace.
namespace  Mila::Dnn

Detailed Description

Device-templated Residual connection component.

The Residual component implements a residual shortcut y = x + F(x) with configurable connection types (Addition, ScaledAddition, Gated) and optional projection when input/output dimensions differ. Computation is delegated to a device-specific binary operation backend obtained from the OperationRegistry.