Skip to content

Commit

Permalink
update dien
Browse files Browse the repository at this point in the history
  • Loading branch information
Weichen Shen committed Mar 30, 2019
1 parent 44610af commit 316ab68
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ matrix:
- env: TF_VERSION=1.7.0
- env: TF_VERSION=1.7.1
- env: TF_VERSION=1.8.0
- env: TF_VERSION=1.12.0 # too slow
- env: TF_VERSION=1.13.1 # too slow
#- env: TF_VERSION=1.12.0 # too slow
#- env: TF_VERSION=1.13.1 # too slow
fast_finish: true

cache: pip
Expand Down
1 change: 1 addition & 0 deletions deepctr/layers/sequence.py
Original file line number Diff line number Diff line change
Expand Up @@ -663,6 +663,7 @@ def build(self, input_shape):
self.gru_cell = tf.nn.rnn_cell.GRUCell(self.num_units)

# Be sure to call this somewhere!

super(DynamicGRU, self).build(input_shape)

def call(self, input_list):
Expand Down
1 change: 1 addition & 0 deletions deepctr/models/dien.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,4 +220,5 @@ def DIEN(feature_dim_dict, seq_feature_list, embedding_size=8, hist_len_max=16,

if use_negsampling:
model.add_loss(alpha * aux_loss_1)
tf.keras.backend.get_session().run(tf.global_variables_initializer())
return model

0 comments on commit 316ab68

Please sign in to comment.