Skip to content

Commit

Permalink
Addind a comment to get_input_bld
Browse files Browse the repository at this point in the history
Signed-off-by: Ming-Xu Huang <mingh@nvidia.com>
  • Loading branch information
mingxu1067 authored and ashors1 committed Mar 5, 2024
1 parent 0bd4a53 commit e3e785c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion praxis/contrib/gpu/scripts_gpu/te_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ def set_layer_params_to_stack_transformer(stacked_transformer_obj, layer_p, laye

@staticmethod
def get_input_bld(original_bld, batch_axes, mdl_axis):
# This is used to specify the sharding pattern of inputs to TransformerLayers.
raise NotImplementedError

@staticmethod
Expand Down Expand Up @@ -89,7 +90,7 @@ def set_layer_params_to_stack_transformer(stacked_transformer_obj, layer_p, laye
return layer_p

@staticmethod
def get_input_bld(original_bld, _, _):
def get_input_bld(original_bld, *_):
return original_bld

@staticmethod
Expand Down

0 comments on commit e3e785c

Please sign in to comment.