From 7635493a0ad15447c8bd0fd96151e4c06fffdf56 Mon Sep 17 00:00:00 2001 From: liuyibing01 Date: Mon, 24 Feb 2020 01:52:52 +0000 Subject: [PATCH] Remove unused code --- parakeet/modules/weight_norm.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/parakeet/modules/weight_norm.py b/parakeet/modules/weight_norm.py index ddf9543..992f099 100644 --- a/parakeet/modules/weight_norm.py +++ b/parakeet/modules/weight_norm.py @@ -113,13 +113,6 @@ class WeightNormWrapper(dg.Layer): return getattr( object.__getattribute__(self, "_sub_layers")["layer"], key) - def __setattr__(self, name, value): - if name == "_param_attr" or name == "_bias_attr": - print(name) - setattr(self.layer, name, value) - else: - super().__setattr__(name, value) - def Linear(input_dim, output_dim,