Skip to content

Commit

Permalink
remove unwanted line of code from transformer_asr.md
Browse files Browse the repository at this point in the history
In the example tutorial of Automatic Speech Recognition with Transformer, positional embedding self.pos_emb in the class SpeechFeatureEmbedding has initialised but not used anywhere.

Hence I am proposing to remove this line of code to avoid unnecessary confusion.
  • Loading branch information
SuryanarayanaY committed Jun 23, 2023
1 parent 3a5f6cf commit 05e6fad
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion examples/audio/md/transformer_asr.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class SpeechFeatureEmbedding(layers.Layer):
self.conv3 = tf.keras.layers.Conv1D(
num_hid, 11, strides=2, padding="same", activation="relu"
)
self.pos_emb = layers.Embedding(input_dim=maxlen, output_dim=num_hid)

def call(self, x):
x = self.conv1(x)
Expand Down

0 comments on commit 05e6fad

Please sign in to comment.