Comments (2)
The operator need an optional method to get which argument it aliases on output, and return a negative number if it doesn't alias any input argument. Until then, we can write a function to use a basic heuristic:
int get_alias_output(instruction_ref x)
{
// Nothing to alias
if(x->arguments.empty())
return -1;
// Assume functions that use an allocation as the last parameter is aliased
if(x->arguments.back()->op.name() == "hip::allocate")
return x->arguments.size() - 1;
return -1;
}
Then replace the function with a call to the operation class when it gets implemented.
from amdmigraphx.
This is actually a duplicate of #23.
from amdmigraphx.
Related Issues (20)
- Padding as fusion
- ResNet34 Perf
- Bug in find_concat_op with predicate func
- Simplify using distributive property of matrix multiplication
- license_stamper.py not resolving check_stamped.py errors
- [Documentation]: Integration Onboarding
- Make `enable_splitk_for_tuning` unit attr
- Automate Stable Diffusion 2.1 Model
- Integrate codegen API for CK gemm-multiple-d HOT 1
- JIRA Ticket: ModuleNotFoundError: No module named 'onnxruntime' HOT 2
- Bump rocMLIR SHA with Navi3x Accuracy Fix
- Optimize Dot + Slice HOT 1
- Remove `qlinear_reused` matcher and instead fuse MLIR `quant_dot` with base pointwise operators HOT 1
- Create a static output shape verify of OneHot
- Investigate test_verify error for DPP instructions on Navi21
- [impr]: RENAME requirements.txt to rbuild.json HOT 3
- [Issue]: Investigate and Fix GPU error with int8 reduced layer models
- Fix rewrite_reduce pass when running SD3 mmdit
- Fix implicit assumption for inputs of the consumer op when fusing MLIR ops
- [INT4] Compress model by quantizing weights to int4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from amdmigraphx.