Skip to content

Commit

Permalink
remove unnecessary cuda code
Browse files Browse the repository at this point in the history
  • Loading branch information
Somefive committed Feb 22, 2021
1 parent 92e5b87 commit a7fda0a
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cogdl/oag/bert_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,11 +413,7 @@ def forward(self, hidden_states, masked_token_indexes):
hidden_states.view(-1, hidden_states.shape[-1]), 0,
masked_token_indexes)

torch.cuda.nvtx.range_push(
"decoder input.size() = {}, weight.size() = {}".format(
hidden_states.size(), self.decoder.weight.size()))
hidden_states = self.decoder(hidden_states) + self.bias
torch.cuda.nvtx.range_pop()
return hidden_states


Expand Down

0 comments on commit a7fda0a

Please sign in to comment.