Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
shenweichen committed Nov 5, 2022
1 parent 5397adc commit 61c8715
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deepctr/layers/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def call(self, inputs, mask=None, **kwargs):
elif self.merge_mode == "bw":
output = output_bw
elif self.merge_mode == 'concat':
output = K.concatenate([output_fw, output_bw])
output = tf.concat([output_fw, output_bw], axis=-1)
elif self.merge_mode == 'sum':
output = output_fw + output_bw
elif self.merge_mode == 'ave':
Expand Down
5 changes: 2 additions & 3 deletions deepctr/layers/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"""
import tensorflow as tf
from tensorflow.python.keras.layers import Flatten, Concatenate, Layer, Add
from tensorflow.python.keras.layers import Flatten, Layer, Add, Lambda
from tensorflow.python.ops.lookup_ops import TextFileInitializer

try:
Expand Down Expand Up @@ -191,7 +191,7 @@ def concat_func(inputs, axis=-1, mask=False):
if len(inputs) == 1:
return inputs[0]
else:
return Concatenate(axis=axis)(inputs)
return Lambda(lambda x: tf.concat(x, axis=axis))(inputs)


def reduce_mean(input_tensor,
Expand Down Expand Up @@ -271,7 +271,6 @@ def build(self, input_shape):
super(_Add, self).build(input_shape)

def call(self, inputs, **kwargs):

if len(inputs) == 0:
return tf.constant([[0.0]])

Expand Down
2 changes: 1 addition & 1 deletion docs/source/History.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# History
- 11/05/2022 : [v0.9.3](https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.3) released.Add [EDCN](./Features.html#edcn-enhancing-explicit-and-implicit-feature-interactions-dcn).
- 11/06/2022 : [v0.9.3](https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.3) released.Add [EDCN](./Features.html#edcn-enhancing-explicit-and-implicit-feature-interactions-dcn).
- 10/15/2022 : [v0.9.2](https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.2) released.Support python `3.9`,`3.10`.
- 06/11/2022 : [v0.9.1](https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.1) released.Improve compatibility with tensorflow `2.x`.
- 09/03/2021 : [v0.9.0](https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.0) released.Add multitask learning models:[SharedBottom](./Features.html#sharedbottom),[ESMM](./Features.html#esmm-entire-space-multi-task-model),[MMOE](./Features.html#mmoe-multi-gate-mixture-of-experts) and [PLE](./Features.html#ple-progressive-layered-extraction). [running example](./Examples.html#multitask-learning-mmoe)
Expand Down
2 changes: 1 addition & 1 deletion docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ You can read the latest code and related projects

News
-----
11/05/2022 : Add `EDCN` . `Changelog <https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.3>`_
11/06/2022 : Add `EDCN` . `Changelog <https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.3>`_

10/15/2022 : Support python `3.9` , `3.10` . `Changelog <https://github.com/shenweichen/DeepCTR/releases/tag/v0.9.2>`_

Expand Down

0 comments on commit 61c8715

Please sign in to comment.