1) 변경 요약
Before
- Add 가 elementwise 라는 사실은 kind = "add" / kind_id=ctx.EltwiseAdd 로만 간접 표현
- Fusion / Lattice / Scheduler 가 fuse 대상이다. inplace 후보로 볼 수 있다를 명시적 정적 신호로 받지 못함
After
- Add 를 OpFlags.IS_ELEMENTWISE 로 태깅해서
- Elementwise Fusion 후보군으로 분류 가능
- constraints.inplace_ok 가 있으면 OpFlags.INPLACE_PREF 까지 올려서
- 가능하면 a 버퍼에 out 을 alias 시키자 같은 inplace 선호를 플래그로 전달
'operator 의 연산 의미 분석' 카테고리의 다른 글
| Operator Semantics, IR Representation, and Kernel Fusion - Case Study : BatchNorm Stats & CrossEntropy (0) | 2026.03.07 |
|---|---|
| AICF: Semantic-Preserving Optimization Architecture (0) | 2026.03.02 |
| AdamStep Emitter 변경 문서 (0) | 2026.02.27 |
| ReLU Semantic Specification - 비선형 게이팅 / 반공간 정류 (0) | 2026.02.19 |
| LayerNorm Semantic Specification (0) | 2026.02.19 |