Hi, all. I am new for pytorch. I wonder how to read the deeper code behind the ‘_backend’ in the module. The example codes are in the file “torch/nn/modules/sparse.py”, around line 96:
"
def forward(self, input):
padding_idx = self.padding_idx
if padding_idx is None:
padding_idx = -1
return self._backend.Embedding.apply(
input, self.weight,
padding_idx, self.max_norm, self.norm_type,
self.scale_grad_by_freq, self.sparse
)
"
Here, I wonder how to read the code behind “self._backend.Embedding.apply”? The “_backend” is actually ‘’ thnn", and where can I find the corresponding codes to the ‘Embedding.apply’ Thanks for help.