Commit 0a66e891 authored by theos's avatar theos
Browse files

Fixed a bug in nifty_lm.py

parent 1c26df80
......@@ -1297,7 +1297,7 @@ class gl_space(point_space):
def get_weight(self, power=1):
# TODO: Check if this function is compatible to the rest of nifty
# TODO: Can this be done more efficiently?
dummy = self.dtype(1)
dummy = self.dtype.type(1)
weighted_dummy = self.calc_weight(dummy, power=power)
return weighted_dummy / dummy
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment