lib/opentuner/streamjit/sjparameters.py
def remove_core(self, config):
		"""Zero a core, equally distributing its value among other nonzero cores."""
		self.normalize(config)
		nonzeroes = self.nonzeroes(config)
		victim = random.choice(nonzeroes)
		v = victim.get_value(config)
		victim.set_value(config, 0.0)
		for p in nonzeroes:
			if p is not victim:
				p.set_value(config, p.get_value(config) + v/(len(nonzeroes)-1))
Zero a core, equally distributing its value among other nonzero cores.
Zero a core, equally distributing its value among other nonzero cores.
Zero a core equally distributing its value among other nonzero cores .
def remove_core(self, config):
		self.normalize(config)
		nonzeroes = self.nonzeroes(config)
		victim = random.choice(nonzeroes)
		v = victim.get_value(config)
		victim.set_value(config, 0.0)
		for p in nonzeroes:
			if p is not victim:
				p.set_value(config, p.get_value(config) + v/(len(nonzeroes)-1))
def remove_core ( self , config ) : self . normalize ( config ) nonzeroes = self . nonzeroes ( config ) victim = random . choice ( nonzeroes ) v = victim . get_value ( config ) victim . set_value ( config , 0.0 ) for p in nonzeroes : if p is not victim : p . set_value ( config , p . get_value ( config ) + v / ( len ( nonzeroes ) - 1 ) )
Zero a core, equally distributing its value among other nonzero cores.
Zero a core equally distributing its value among other nonzero cores .
"""Zero a core, equally distributing its value among other nonzero cores."""
self
config