5e37bb3ea1bed3f329ff825eaa6c7b9ed92edb15,sentiment_discovery/reparameterization/reparameterization.py,Reparameterization,__call__,#Reparameterization#Any#Any#,134

Before Change



	def __call__(self, module, inputs):
		callable hook for forward pass
		sys.stdout.flush()
		_w = getattr(self.module, self.name)
		if not self.evaluated or _w is None:
			setattr(self.module, self.name, self.compute_weight(self.module))

After Change



	def __call__(self, module, inputs):
		callable hook for forward pass
		module2use, name2use = Reparameterization.get_module_and_name(module, self.name)
		_w = getattr(module2use, name2use)
		if not self.evaluated or _w is None:
			setattr(module2use, name2use, self.compute_weight(module2use, name2use))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: NVIDIA/sentiment-discovery
Commit Name: 5e37bb3ea1bed3f329ff825eaa6c7b9ed92edb15
Time: 2017-12-20
Author: raulp@gcf-ctrl-01.nvidia.com
File Name: sentiment_discovery/reparameterization/reparameterization.py
Class Name: Reparameterization
Method Name: __call__


Project Name: pymc-devs/pymc3
Commit Name: 9ef50183c43700fea3bfbacaa70b2283631373e8
Time: 2013-04-14
Author: jsalvatier@gmail.com
File Name: pymc/progressbar.py
Class Name: ProgressBar
Method Name: animate_ipython


Project Name: calico/basenji
Commit Name: dc719925f9202a1248d2510aa7aa7e3b648f82cc
Time: 2016-07-14
Author: davidkelley44@gmail.com
File Name: bin/basenji_scent.py
Class Name:
Method Name: main


Project Name: tensorflow/tensorboard
Commit Name: f13f59a3b9951c8817a9db61acf3e8a6a9da8d09
Time: 2017-01-21
Author: dandelion@google.com
File Name: lib/python/http.py
Class Name:
Method Name: Respond


Project Name: GoogleCloudPlatform/python-docs-samples
Commit Name: 2024091c39da783bf4561615cc667864b95c8bb8
Time: 2020-07-31
Author: dinagraves@google.com
File Name: run/markdown-preview/editor/render.py
Class Name:
Method Name: new_request