Returns the variables that are used to define the LazyVariable
raise NotImplementedError
def size(self):
Returns the size of the resulting Variable that the lazy variable represents
After Change
Returns the variables that are used to define the LazyVariable
representation = []
for arg in self._args:
if isinstance(arg, Variable):
representation.append(arg)
elif isinstance(arg, LazyVariable):
representation += list(arg.representation())
else:
raise RuntimeError("Representation of a LazyVariable should consist only of Variables")
return tuple(representation)
def size(self):
Returns the size of the resulting Variable that the lazy variable represents