You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
"""The Attentional sequence pooling operation used in DIN.
187
187
@@ -463,7 +463,8 @@ def build(self, input_shape):
463
463
embedding_size=int(input_shape[0][-1])
464
464
ifself.num_units!=embedding_size:
465
465
raiseValueError(
466
-
"att_embedding_size * head_num must equal the last dimension size of inputs,got %d * %d != %d"% (self.att_embedding_size,self.head_num,embedding_size))
466
+
"att_embedding_size * head_num must equal the last dimension size of inputs,got %d * %d != %d"% (
Copy file name to clipboardExpand all lines: deepctr/utils.py
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -32,16 +32,15 @@ def check(version):
32
32
releases=j.get('releases', [])
33
33
forreleaseinreleases:
34
34
ver=parse(release)
35
-
ifver.is_prereleaseorver.is_postrelease:
35
+
ifver.is_prereleaseorver.is_postrelease:
36
36
continue
37
37
latest_version=max(latest_version, ver)
38
38
iflatest_version>version:
39
39
logging.warning(
40
40
'\nDeepCTR version {0} detected. Your version is {1}.\nUse `pip install -U deepctr` to upgrade.Changelog: https://github.com/shenweichen/DeepCTR/releases/tag/v{0}'.format(
41
41
latest_version, version))
42
-
exceptExceptionase:
42
+
except:
43
43
print("Please check the latest version manually on https://pypi.org/project/deepctr/#history")
0 commit comments