From c36d2c0a4927daa65d5d695be334acabfcc1156e Mon Sep 17 00:00:00 2001 From: shenweichen Date: Fri, 10 Apr 2020 19:56:53 +0800 Subject: [PATCH] no message --- deepmatch/layers/core.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/deepmatch/layers/core.py b/deepmatch/layers/core.py index a420a85..293b885 100644 --- a/deepmatch/layers/core.py +++ b/deepmatch/layers/core.py @@ -26,7 +26,6 @@ def call(self, seq_value_len_list, mask=None, **kwargs): seq_value_len_list = [seq_value_len_list] if len(seq_value_len_list) == 1: return seq_value_len_list[0] - # seq_value_len_list[1] = tf.squeeze(seq_value_len_list[1],axis=0) expand_seq_value_len_list = list(map(lambda x: tf.expand_dims(x, axis=-1), seq_value_len_list)) a = concat_func(expand_seq_value_len_list) if self.mode == "mean": @@ -46,8 +45,6 @@ def get_config(self, ): class SampledSoftmaxLayer(Layer): def __init__(self, num_sampled=5, **kwargs): self.num_sampled = num_sampled - # self.target_song_size = item_embedding.input_dim - # self.item_embedding = item_embedding super(SampledSoftmaxLayer, self).__init__(**kwargs) def build(self, input_shape): @@ -57,9 +54,6 @@ def build(self, input_shape): dtype=tf.float32, trainable=False, name="bias") - # if not self.item_embedding.built: - # self.item_embedding.build([]) - # self.trainable_weights.append(self.item_embedding.embeddings) super(SampledSoftmaxLayer, self).build(input_shape) def call(self, inputs_with_label_idx, training=None, **kwargs):