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

Fix bug #9

Merged
merged 2 commits into from
Jun 12, 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
2 changes: 1 addition & 1 deletion deepmatch_torch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from . import models
from . import layers

__version__ = '0.0.5'
__version__ = '0.0.6'
__author__="BBruceyuan"
9 changes: 4 additions & 5 deletions deepmatch_torch/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,10 @@


def concat_fun(inputs, axis=-1):
def concat_fun(inputs, axis=-1):
if len(inputs) == 1:
return inputs[0]
else:
return torch.cat(inputs, dim=axis)
if len(inputs) == 1:
return inputs[0]
else:
return torch.cat(inputs, dim=axis)

def combined_dnn_input(sparse_embedding_list, dense_value_list=[]):
if len(sparse_embedding_list) > 0 and len(dense_value_list) > 0:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# 去除了 PyTorch 的依赖,需要用户自己自己下载
REQUIRED_PACKAGES = [
'tqdm', 'sklearn'
'tqdm', 'sklearn', 'deepctr-torch', 'tensorflow', 'pytorch-lightning'
]

setuptools.setup(
Expand Down