Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改hack 单词拼写错误 #1697

Merged
merged 1 commit into from
Apr 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions examples/other/1xt2x/src_deepspeech2x/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#TODO(Hui Zhang): remove fluid import
logger = Log(__name__).getlog()

########### hcak logging #############
########### hack logging #############
logger.warn = logger.warning

########### hcak paddle #############
########### hack paddle #############
paddle.half = 'float16'
paddle.float = 'float32'
paddle.double = 'float64'
Expand Down Expand Up @@ -110,7 +110,7 @@ def cat(xs, dim=0):
paddle.cat = cat


########### hcak paddle.Tensor #############
########### hack paddle.Tensor #############
def item(x: paddle.Tensor):
return x.numpy().item()

Expand Down Expand Up @@ -353,7 +353,7 @@ def tolist(x: paddle.Tensor) -> List[Any]:
setattr(paddle.Tensor, 'tolist', tolist)


########### hcak paddle.nn #############
########### hack paddle.nn #############
class GLU(nn.Layer):
"""Gated Linear Units (GLU) Layer"""

Expand Down
6 changes: 3 additions & 3 deletions paddlespeech/s2t/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@
#TODO(Hui Zhang): remove fluid import
logger = Log(__name__).getlog()

########### hcak logging #############
########### hack logging #############
logger.warn = logger.warning

########### hcak paddle #############
########### hack paddle #############
paddle.half = 'float16'
paddle.float = 'float32'
paddle.double = 'float64'
Expand Down Expand Up @@ -110,7 +110,7 @@ def cat(xs, dim=0):
paddle.cat = cat


########### hcak paddle.Tensor #############
########### hack paddle.Tensor #############
def item(x: paddle.Tensor):
return x.numpy().item()

Expand Down