0479ca409c32f3ed79b2f45d1b65df346390ba4b,gpytorch/lazy/lazy_variable.py,LazyVariable,representation,#LazyVariable#,208

Before Change


        
        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
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: cornellius-gp/gpytorch
Commit Name: 0479ca409c32f3ed79b2f45d1b65df346390ba4b
Time: 2017-11-13
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: representation


Project Name: cornellius-gp/gpytorch
Commit Name: c261c192d6cc38df28ac90a51b093fcb5efbbfe4
Time: 2017-08-22
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: mm


Project Name: cornellius-gp/gpytorch
Commit Name: c261c192d6cc38df28ac90a51b093fcb5efbbfe4
Time: 2017-08-22
Author: gpleiss@gmail.com
File Name: gpytorch/lazy/lazy_variable.py
Class Name: LazyVariable
Method Name: invmm