refactor(ops): use canonical InfiniOps activation APIs - #1476
Closed
voltjia wants to merge 1 commit into
Closed
Conversation
This was referenced Aug 7, 2026
Collaborator
Author
|
Superseded by #1480, which consolidates the canonical InfiniOps adapter migrations while preserving each logical change as a separate commit. |
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.
What
1b9c3765to21b07ebc.Alignment
geluGelu(input, none, out)torch.nn.functional.gelu(input, approximate=none), InfiniOpsGelugelutanhGelu(input, tanh, out)torch.nn.functional.gelu(..., approximate=tanh), InfiniOps #889reluRelu(input, out)torch.nn.functional.relu(input, inplace=False), InfiniOpsRelusigmoidSigmoid(input, out)torch.sigmoid(input), InfiniOpsSigmoidsilu_and_mulSiluAndMul(input, out)SiluAndMul, InfiniOpsSiluAndMulInfiniOps follows its C++ convention of input tensors, attributes, then output tensors; this PR only changes the adapter target.
Why
The canonical providers are now available in InfiniOps, so these adapters no longer need the deprecated
*Infinilmcompatibility classes.Scope
No Python/C++ public InfiniCore API, tensor layout, or kernel behavior changes. The InfiniOps pin also contains the canonical APIs used by the following stacked migration PRs.
Screenshots: N/A (backend adapter migration only).
Validation
Run on
ssh nvidiainaccelerator-dev/nvidia:lateston NVIDIA A100 GPUs:infinicore_cpp_apiand_infinicorebuild/install passed.python3 scripts/format.py --ref 850fb3f7 --path src --checkwith clang-format 16.0.6.git diff --check.