(input, weight, bias=None)
| 102 | |
| 103 | |
| 104 | def zero3_linear_wrap(input, weight, bias=None): |
| 105 | if bias is None: |
| 106 | return LinearFunctionForZeroStage3.apply(input, weight) |
| 107 | else: |
| 108 | return LinearFunctionForZeroStage3.apply(input, weight, bias) |
| 109 | |
| 110 | |
| 111 | class LinearModuleForZeroStage3(Module): |