refactor op handling to use register pattern#78523
refactor op handling to use register pattern#78523eellison wants to merge 18 commits intogh/eellison/301/basefrom
Conversation
[ghstack-poisoned]
🔗 Helpful links
✅ No Failures (0 Pending)As of commit 607ec34 (more details on the Dr. CI page): Expand to see more💚 💚 Looks good so far! There are no failures yet. 💚 💚 This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
[ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation. ``` register_op_handler(torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` is short-hand for ``` register_op_handler(lambda func: func == torch.ops.aten._to_copy.default) def to_copy(cls_or_mode_instance, func, types, args, kwargs, run_function, converter): ``` [ghstack-poisoned]
|
@pytorchbot merge |
|
@pytorchbot successfully started a merge job. Check the current status here |
|
Hey @eellison. |
ghstack-source-id: 7058d8b Pull Request resolved: pytorch#78523
Summary: Pull Request resolved: #78523 Approved by: https://github.com/ezyang Test Plan: contbuild & OSS CI, see https://hud.pytorch.org/commit/pytorch/pytorch/d6ecdf16056e907deca2a0e8927fef30051f105f Reviewed By: osalpekar Differential Revision: D37025746 Pulled By: eellison fbshipit-source-id: 99c84d6666d0f3d77cb6353c8979f08ab2cf924f
Stack from ghstack (oldest at bottom):
Cleans up the operators that require special handling by registering a function which returns if the operator implementation should run, and a corresponding operator implementation.
is short-hand for