Tests
Content:
public class HuberLossGpuTests
Language: C#
Verification tests for GPU-accelerated HuberLoss implementation
These tests verify that:
- HuberLoss correctly computes loss values on GPU
- Gradients are computed correctly
- GPU operations stay on GPU device
- CPU fallback works correctly
- All GPU math operations (Abs, Where, Comparisons) work as expected
public class MockCpuDevice : IComputeDevice
Language: C#
Mock CPU device for testing