Skip to content

Commit

Permalink
fixes for init value of diagnostics.TensorDiagnosticOptions (#1555)
Browse files Browse the repository at this point in the history
  • Loading branch information
JinZr authored Mar 18, 2024
1 parent bf2f943 commit 9b0eae3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion egs/aishell/ASR/whisper/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -793,7 +793,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1119,7 +1119,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1035,7 +1035,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
2 changes: 1 addition & 1 deletion egs/multi_zh-hans/ASR/whisper/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
2 changes: 1 addition & 1 deletion egs/wenetspeech/ASR/whisper/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down
2 changes: 1 addition & 1 deletion egs/wenetspeech/KWS/zipformer/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -1187,7 +1187,7 @@ def run(rank, world_size, args):

if params.print_diagnostics:
opts = diagnostics.TensorDiagnosticOptions(
2**22
512
) # allow 4 megabytes per sub-module
diagnostic = diagnostics.attach_diagnostics(model, opts)

Expand Down

0 comments on commit 9b0eae3

Please sign in to comment.