Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 800 Bytes

File metadata and controls

24 lines (20 loc) · 800 Bytes
applyTo
dpctl/tensor/libtensor/include/kernels/elementwise_functions/**
dpctl/tensor/libtensor/source/elementwise_functions/**
dpctl/tensor/_elementwise_*.py
dpctl/tests/elementwise/**

Elementwise Operations Instructions

Full stack: C++ kernel → pybind11 → Python wrapper → tests

References

  • C++ kernels: dpctl/tensor/libtensor/AGENTS.md
  • Python wrappers: dpctl/tensor/AGENTS.md
  • Tests: dpctl/tests/AGENTS.md

Adding New Operation

  1. libtensor/include/kernels/elementwise_functions/op.hpp - functor
  2. libtensor/source/elementwise_functions/op.cpp - dispatch tables
  3. Register in tensor_elementwise.cpp
  4. _elementwise_funcs.py - Python wrapper
  5. Export in __init__.py
  6. tests/elementwise/test_op.py - full dtype/usm coverage