You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implements testing framework for activation functions using reference data generated by PyTorch.
Changes:
Added generate_activation_data.py to generate .npy reference files for sigmoid, relu, tanh, elu, selu, softplus, and softsign.
Draft implementation of unit tests in test_specialfunctions_activations.fypp using test-drive.
Current Status:
As discussed in #992, I am encountering a build error linking stdlib_io to the test executable.
Opening this as a Draft to get help with the CMake configuration.
Reference data files generated locally (ignored by git).
Hi @jalvesz,
I have pushed the updates to integrate the testing framework directly into test_specialfunctions_activations.fypp using test-drive as discussed in the issue.
Key changes implemented: 1CMakeFix: I added stdlib_io to the dependencies in test/specialfunctions/CMakeLists.txt to resolve the module visibility issue. 2Test Logic: Implemented the initial test subroutines in test_specialfunctions_activations.fypp. 3Python Script: Created generate_activation_data.py to handle the reference data generation.
before reveiwing, could you please first remove unrelated changes: the app folder seems to be something coming from local testing, please revert this. Also, the .f90 file in the src folder should not be tracked here, it is a file created by the fypp preprocessor.
14NGiestas
added
topic: mathematics
linear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ...
automation
Related to the workflows and automatic tests running here
labels
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
automationRelated to the workflows and automatic tests running heretopic: mathematicslinear algebra, sparse matrices, special functions, FFT, random numbers, statistics, ...
3 participants
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements testing framework for activation functions using reference data generated by PyTorch.
Changes:
generate_activation_data.pyto generate.npyreference files for sigmoid, relu, tanh, elu, selu, softplus, and softsign.test_specialfunctions_activations.fyppusingtest-drive.Current Status:
As discussed in #992, I am encountering a build error linking
stdlib_ioto the test executable.Opening this as a Draft to get help with the CMake configuration.
Reference data files generated locally (ignored by git).