Skip to content

Conversation

@rsuderman
Copy link
Contributor

  • Introduce PointwiseBinaryGraphBuilder and PointwiseUnaryGraphBuilder classes to encapsulate graph creation, tensor setup, compilation, and execution for pointwise operations
  • Add getTensorAttr() helper function to simplify contiguous tensor creation
  • Refactor all pointwise test files to use the new builder classes, reducing boilerplate and improving readability
  • Remove redundant multi-iteration execution loops from tests (keeping single execution per test case)

Design Notes

The new pointwise_utils.h header is intentionally placed in samples/pointwise/ alongside the tests that use it, rather than in a shared location. This keeps the utilities scoped
to the pointwise operators and avoids exposing implementation details to other sample categories or the broader codebase.

  - Introduce PointwiseBinaryGraphBuilder and PointwiseUnaryGraphBuilder classes to encapsulate graph creation, tensor setup, compilation, and execution for pointwise operations
  - Add getTensorAttr() helper function to simplify contiguous tensor creation
  - Refactor all pointwise test files to use the new builder classes, reducing boilerplate and improving readability
  - Remove redundant multi-iteration execution loops from tests (keeping single execution per test case)

  Design Notes

  The new pointwise_utils.h header is intentionally placed in samples/pointwise/ alongside the tests that use it, rather than in a shared location. This keeps the utilities scoped
  to the pointwise operators and avoids exposing implementation details to other sample categories or the broader codebase.

Signed-off-by: Rob Suderman <rob.suderman@gmail.com>
Signed-off-by: Rob Suderman <rob.suderman@gmail.com>
Signed-off-by: Rob Suderman <rob.suderman@gmail.com>
Signed-off-by: Rob Suderman <rob.suderman@gmail.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