Interface IGpuAcceleratedPINN<T>
- Namespace
- AiDotNet.PhysicsInformed.Interfaces
- Assembly
- AiDotNet.dll
Interface for Physics-Informed Neural Networks that support GPU acceleration.
public interface IGpuAcceleratedPINN<T>
Type Parameters
TThe numeric type used for calculations.
Remarks
For Beginners: This interface marks PINNs that can take advantage of GPU acceleration during training. GPU acceleration can provide significant speedups for:
- Batch processing of collocation points
- Parallel derivative computations
- Matrix operations in the forward and backward passes
Implementing this interface signals that the PINN can use GPU resources when available.
Properties
GpuConfig
Gets or sets the GPU acceleration configuration.
GpuAccelerationConfig? GpuConfig { get; set; }
Property Value
IsGpuAvailable
Gets a value indicating whether GPU is currently available and ready for use.
bool IsGpuAvailable { get; }
Property Value
UseGpuAcceleration
Gets or sets whether GPU acceleration is enabled for training.
bool UseGpuAcceleration { get; set; }
Property Value
Methods
InitializeGpu(GpuAccelerationConfig?)
Initializes GPU resources for accelerated training.
bool InitializeGpu(GpuAccelerationConfig? config = null)
Parameters
configGpuAccelerationConfigOptional GPU configuration. If null, uses default settings.
Returns
- bool
True if GPU initialization was successful, false otherwise.
ReleaseGpuResources()
Releases GPU resources.
void ReleaseGpuResources()