Update speech_conformer_encoder.py
Browse files
speech_conformer_encoder.py
CHANGED
@@ -19,7 +19,7 @@ from torch.distributed.algorithms._checkpoint.checkpoint_wrapper import (
|
|
19 |
"""cascade basic blocks"""
|
20 |
|
21 |
import math
|
22 |
-
import backoff
|
23 |
import random
|
24 |
import numpy as np
|
25 |
from typing import Optional, Tuple, Union
|
@@ -934,7 +934,7 @@ class AbsolutePositionalEncoding(nn.Module):
|
|
934 |
|
935 |
#### forward embedding layers starts here
|
936 |
|
937 |
-
|
938 |
def np_loadtxt_with_retry(filepath):
|
939 |
"""np.loadtxt with retry
|
940 |
|
|
|
19 |
"""cascade basic blocks"""
|
20 |
|
21 |
import math
|
22 |
+
#import backoff
|
23 |
import random
|
24 |
import numpy as np
|
25 |
from typing import Optional, Tuple, Union
|
|
|
934 |
|
935 |
#### forward embedding layers starts here
|
936 |
|
937 |
+
#@backoff.on_exception(backoff.expo, Exception, max_tries=10)
|
938 |
def np_loadtxt_with_retry(filepath):
|
939 |
"""np.loadtxt with retry
|
940 |
|