Skip to content

Comments

Match full from PyTorch#137

Merged
mawad-amd merged 4 commits intomainfrom
muhaawad/full
Sep 1, 2025
Merged

Match full from PyTorch#137
mawad-amd merged 4 commits intomainfrom
muhaawad/full

Conversation

@mawad-amd
Copy link
Collaborator

@mawad-amd mawad-amd commented Sep 1, 2025

Motivation

Match full from PyTorch

Technical Details

Test Plan

Test Result

Submission Checklist

Copilot AI review requested due to automatic review settings September 1, 2025 05:30
@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 implements a full function for the Iris framework that matches PyTorch's torch.full API. The implementation creates tensors filled with a specified value and ensures they are allocated on the Iris symmetric heap.

Key changes:

  • Enhanced the full method in iris.py to match PyTorch's API with support for dtype inference, device handling, and output tensor parameters
  • Added comprehensive test suite covering various scenarios including edge cases, parameter combinations, and PyTorch equivalence
  • Implemented proper error handling for invalid parameters and device mismatches

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
iris/iris.py Updated full method to match PyTorch API with dtype inference, device validation, and comprehensive parameter support
tests/unittests/test_full.py Added comprehensive test suite covering basic functionality, edge cases, parameter combinations, and PyTorch equivalence

@mawad-amd mawad-amd merged commit 4089f88 into main Sep 1, 2025
7 checks passed
@mawad-amd mawad-amd deleted the muhaawad/full branch September 1, 2025 06:56
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