Skip to content

Comments

Match PyTorch ones API#136

Merged
mawad-amd merged 3 commits intomainfrom
muhaawad/ones
Sep 1, 2025
Merged

Match PyTorch ones API#136
mawad-amd merged 3 commits intomainfrom
muhaawad/ones

Conversation

@mawad-amd
Copy link
Collaborator

Motivation

Match PyTorch ones API

Technical Details

Test Plan

Test Result

Submission Checklist

Copilot AI review requested due to automatic review settings September 1, 2025 05:17
@github-actions github-actions bot added in-progress We are working on it iris Iris project issue labels Sep 1, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR updates the ones method in the Iris framework to match PyTorch's ones API more closely. The changes improve parameter handling, documentation clarity, and tensor allocation behavior while maintaining compatibility with the Iris symmetric heap.

  • Enhanced parameter processing for device, layout, and size handling
  • Improved documentation with clearer parameter descriptions and formatting
  • Added comprehensive test coverage for various edge cases and parameter combinations

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
iris/iris.py Updated ones method implementation with improved parameter handling, documentation, and tensor allocation logic
tests/unittests/test_ones.py Added comprehensive test suite covering all ones method functionality, edge cases, and PyTorch API compatibility

@mawad-amd mawad-amd merged commit 89b2c27 into main Sep 1, 2025
@mawad-amd mawad-amd deleted the muhaawad/ones branch September 1, 2025 05:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

in-progress We are working on it iris Iris project issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant