-
Notifications
You must be signed in to change notification settings - Fork 0
TorchParameterizedFunction
Matthias K. Hoffmann edited this page May 6, 2024
·
1 revision
The TorchParameterizedFunction class, derived from nn.Module and ABC, provides an abstract base for storing and managing parameterized functions. This class is primarily designed for use within the TorchMovingFrame system but is flexible enough to accommodate other models like polynomial representations.
The TorchParameterizedFunction class inherits from:
-
nn.Module: PyTorch's base class for all neural network modules, enabling parameter tracking, model saving/loading, and more. -
ABC(Abstract Base Class): Used to define abstract methods that derived classes must implement, ensuring a consistent interface for functions.
-
Description: This is an abstract method that must be implemented by subclasses. It is used to retrieve a parameterized function between two points,
s0ands1, based on the indexidx. This function is vital for calculating specific curvature values necessary for the associated moving frame computations. -
Arguments:
-
idx(int): The index specifying which function to retrieve. -
s0(float): The starting arc-length parameter. -
s1(float): The ending arc-length parameter.
-
-
Returns:
- This method is expected to return a callable function that describes the between the two arc-length parameters
s0ands1.
- This method is expected to return a callable function that describes the between the two arc-length parameters