Skip to content

Conversation

@nghuiqin
Copy link
Contributor

Summary:
We added file decorator support in #1111

Problem: This will fail when the function wrapper with dataclass object
Fix: Determine if decorators found in function before unwrap.

Add two test cases to cover:

  • comp_f using dataclass in g.py => should return init.py
  • comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Sep 15, 2025
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

nghuiqin added a commit to nghuiqin/torchx that referenced this pull request Sep 15, 2025
…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Reviewed By: ethanbwaite

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

…ass (meta-pytorch#1116)

Summary:

We added file decorator support in meta-pytorch#1111

**Problem:** This will fail when the function wrapper with dataclass object
**Fix:** Determine if decorators found in function before unwrap.

Add two test cases to cover:
* comp_f  using dataclass in g.py => should return __init__.py
* comp_g using decorator in h.py => should return g.py

Reviewed By: ethanbwaite

Differential Revision: D82346696
@facebook-github-bot
Copy link
Contributor

@nghuiqin has exported this pull request. If you are a Meta employee, you can view the originating diff in D82346696.

@nghuiqin nghuiqin closed this Sep 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants