Closed ROBINADC closed 5 years ago
in if __name__ == '__main__': outputs = position_encoding(num_units)(inputs) should be outputs = positional_encoding(num_units)(inputs)
if __name__ == '__main__':
outputs = position_encoding(num_units)(inputs)
outputs = positional_encoding(num_units)(inputs)
This line is the code that the coder is debugging with and won't be run while you run train.py. So it doesn't matter.
in
if __name__ == '__main__':
outputs = position_encoding(num_units)(inputs)
should beoutputs = positional_encoding(num_units)(inputs)