Skip to content

Commit

Permalink
clear tmp var in ptq (PaddlePaddle#48660)
Browse files Browse the repository at this point in the history
  • Loading branch information
ceci3 authored Dec 6, 2022
1 parent 426bb6e commit dbe0595
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -692,11 +692,10 @@ def _reset_activation_persistable(self):
'''
Reset activations to be not persistable.
'''
to_erase = []
for var in self._program.list_vars():
if var.name in self._quantized_act_var_name:
var.persistable = False
to_erase.append(var.name)
self._scope.find_var(var.name).get_tensor()._clear()

def _sampling(self):
'''
Expand Down

0 comments on commit dbe0595

Please sign in to comment.