Skip to content

test: add comprehensive test suite for PTO operations#12

Open
wangqin1723-max wants to merge 1 commit intoluohuan19:mainfrom
wangqin1723-max:st
Open

test: add comprehensive test suite for PTO operations#12
wangqin1723-max wants to merge 1 commit intoluohuan19:mainfrom
wangqin1723-max:st

Conversation

@wangqin1723-max
Copy link

Add test coverage for multiple operation categories with both 64x64 and 128x128 tile sizes:

New test files:

  • test_broadcast.py: Row-wise broadcast operations (sub, mul, div)
  • test_memory.py: Memory operations (load/store, full)
  • test_reduction.py: Reduction operations (row_max, row_sum)
  • test_unary.py: Unary operations (log, abs, relu, exp, sqrt, neg)

Enhanced test_elementwise.py:

  • Refactor test structure using base class + subclass pattern
  • Add maximum operation tests
  • Add scalar operation tests (adds, subs, muls, divs)
  • Implement 64x64 and 128x128 variants for all operations

All tests follow the simplified pattern where orchestration is auto-generated by the testing framework, reducing boilerplate code.

Add test coverage for multiple operation categories with both 64x64 and
128x128 tile sizes:

New test files:
- test_broadcast.py: Row-wise broadcast operations (sub, mul, div)
- test_memory.py: Memory operations (load/store, full)
- test_reduction.py: Reduction operations (row_max, row_sum)
- test_unary.py: Unary operations (log, abs, relu, exp, sqrt, neg)

Enhanced test_elementwise.py:
- Refactor test structure using base class + subclass pattern
- Add maximum operation tests
- Add scalar operation tests (adds, subs, muls, divs)
- Implement 64x64 and 128x128 variants for all operations

All tests follow the simplified pattern where orchestration is
auto-generated by the testing framework, reducing boilerplate code.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant