mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-27 20:46:00 +00:00
[fx] support module with bias addition (#1780)
* [autoparallel] refactor tracer to fix bias addition issue * [fx] support module with bias addition * create bias_addition_module * refactor file structure * polish code * fix unit test
This commit is contained in:
@@ -1,8 +1,11 @@
|
||||
import operator
|
||||
|
||||
import torch
|
||||
from ..registry import meta_patched_function
|
||||
|
||||
from colossalai.fx.proxy import ColoProxy
|
||||
|
||||
from ...registry import meta_patched_function
|
||||
|
||||
|
||||
@meta_patched_function.register(operator.getitem)
|
||||
def operator_getitem(a, b):
|
||||
|
Reference in New Issue
Block a user