I'm trying to understand what does this operator @, uses in python. I saw something about matrix multipication , but this is sure not the case,I'll give an example:
@property
def num_reserved_ids(self):
return 0
Or:
@registry.register_problem()
class LibrispeechNoisy(Librispeech):
Last one:
@registry.register_hparams
def transformer_librispeech_tpu_v1():
"""HParams for training ASR model on Librispeech on TPU v1."""
hparams = transformer_librispeech_v1()
update_hparams_for_tpu(hparams)
Registry is another file that is used in the program.register_hparams is a function inside. Don't know what "property" is, but even registry that I know what it is, I can't understand the purpose of the operator :@, I'm a bit slow, sorry for that :/ ..
If anyone wants to look for some more code you can check tensor2tensor library: https://github.com/tensorflow/tensor2tensor/tree/master/tensor2tensor