[ENH] Add per-stack interpolation options override support#69
Open
Leguark wants to merge 3 commits intocheck_inputfrom
Open
[ENH] Add per-stack interpolation options override support#69Leguark wants to merge 3 commits intocheck_inputfrom
Leguark wants to merge 3 commits intocheck_inputfrom
Conversation
- Introduced `interpolation_options_per_stack` in `StacksStructure` to allow custom interpolation parameters for individual stacks. - Updated `_multi_scalar_field_manager` and `_stack_ops` modules to handle stack-specific overrides when computing scalar fields and weights. - Added tests to verify the behavior of stack-specific interpolation (serial and flat execution modes) and backward compatibility with global options.
…in symbolic evaluator - Simplified `_stack_ops` by introducing helper functions for segmentation and preprocessing. - Allowed `symbolic_evaluator_optimized_stacked` to accept per-stack interpolation options. - Ensured compatibility with GPU support and batch execution workflows. - Updated tests to validate new behavior under different execution modes.
…workflows - Enabled `pykeops` dynamically for scalar and gradient kernel computations with fallback mechanisms. - Standardized tensor conversions to ensure compatibility across backends. - Improved support for `LazyTensor` in evaluation workflows and fault data processing. - Refactored kernel input upgrades to handle backend-specific logic cleanly.
Member
Author
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
This stack of pull requests is managed by Graphite. Learn more about stacking. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.

Add stack-specific interpolation options and override support
Enhanced Stack Configuration
interpolation_options_per_stackinStacksStructureto allow custom interpolation parameters for individual stacksinterpolation_optionsproperty to access stack-specific options based on current stack number_multi_scalar_field_managerand_stack_opsmodules to handle stack-specific overrides when computing scalar fields and weightsRefactored Stack Operation Workflow
_stack_opsby extracting_segment_stackand_prepare_solver_inputhelper functions for better modularity_compute_weights_for_stacksand_segmentto use per-stack options instead of global options_evaluate_optimizedto collect and pass options per stack to the symbolic evaluatorEnhanced Symbolic Evaluator
symbolic_evaluator_optimized_stackedto acceptoptions_listparameter for per-stack interpolation optionsImproved Kernel Constructor
_upgrade_kernel_input_to_keops_tensor_numpyand_upgrade_kernel_input_to_keops_tensor_pytorchto handle axis specification for 2D tensors_cast_tensorsfunction to use backend-specific upgrade functions_build_stacked_kernel_datawith better type handling and GPU memory managementTesting and Validation