Closed pipi9baby closed 4 years ago
Each class attribute vector is normalized to have the unit l2 norm. So att is the normalized version of original_att.
Further clarification: The line
self.aux_data = torch.from_numpy(matcontent['att'].T).float().to(self.device)
would be equivalent to:
self.aux_data = torch.from_numpy(matcontent['original_att'].T).float().to(self.device)
self.aux_data = torch.nn.functional.normalize(self.aux_data, p=2, dim=1)
I found that you use 'att' to be the input of E1 not 'original_att'. what the difference between 'att' and 'original_att'?