Closed andrewtruong closed 1 month ago
This PR makes the @op deco work with inspect.isfunction and inspect.iscoroutinefunction which are commonly used in other patching libs
@op
inspect.isfunction
inspect.iscoroutinefunction
There are a few tradeoffs, discussed here: https://www.notion.so/wandbai/Weave-op-decorator-changes-a9fcd15d75ec4b1b917bbe657a3b8bd7?pvs=4
Preview this PR with FeatureBee: https://beta.wandb.ai/?betaVersion=8b14b89f3ac372ad7c00bc826ab7178484887517
Resolves
This PR makes the
@op
deco work withinspect.isfunction
andinspect.iscoroutinefunction
which are commonly used in other patching libsThere are a few tradeoffs, discussed here: https://www.notion.so/wandbai/Weave-op-decorator-changes-a9fcd15d75ec4b1b917bbe657a3b8bd7?pvs=4