Skip to content

Commit dbe4e97

Browse files
authored
Update common.py
1 parent 15ca413 commit dbe4e97

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

source/train/common.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,11 +147,6 @@ def j_must_have_d (jdata, key, deprecated_key) :
147147
def j_have (jdata, key) :
148148
return key in jdata.keys()
149149

150-
def j_whether_in_dict(activation_fn):
151-
if activation_fn not in activation_fn_dict:
152-
raise RuntimeError(activation_fn+" is not a valid activation function")
153-
return activation_fn_dict[activation_fn]
154-
155150
def get_activation_func(activation_fn):
156151
if activation_fn not in activation_fn_dict:
157152
raise RuntimeError(activation_fn+" is not a valid activation function")

0 commit comments

Comments
 (0)