Skip to content

Commit a5e82c4

Browse files
committed
fix smart_cond issue
1 parent 33fafe6 commit a5e82c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

corl/model/tf2/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from time import strftime
55

66
from tensorflow.python.keras.utils import tf_utils
7-
from tensorflow.python.framework import smart_cond
7+
from tensorflow.python.framework.smart_cond import smart_cond
88

99
class AlphaDropout(keras.layers.Layer):
1010
"""Applies Alpha Dropout to the input.

model/common.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from time import strftime
55

66
from tensorflow.python.keras.utils import tf_utils
7-
from tensorflow.python.framework import smart_cond
7+
from tensorflow.python.framework.smart_cond import smart_cond
88

99
class AlphaDropout(keras.layers.Layer):
1010
"""Applies Alpha Dropout to the input.

0 commit comments

Comments
 (0)