f065b29cc8667c3012761b9509886411d8095e57,starry/_core/ops/integration.py,sTReflectedOp,make_node,#sTReflectedOp#,109
Before Change
def make_node(self, *inputs):
inputs = [tt.as_tensor_variable(i) for i in inputs]
outputs = [tt.TensorType(inputs[-1].dtype, (False, False))()]
return gof.Apply(self, inputs, outputs)
def infer_shape(self, node, shapes):
return [shapes[0] + (tt.as_tensor(self.N),)]
After Change
def make_node(self, *inputs):
inputs = [tt.as_tensor_variable(i) for i in inputs]
outputs = [
tt.TensorType(inputs[-1].dtype, (False, False))(),
tt.TensorType(inputs[-1].dtype, (False, False))(),
tt.TensorType(inputs[-1].dtype, (False, False))(),
tt.TensorType(inputs[-1].dtype, (False, False))(),
tt.TensorType(inputs[-1].dtype, (False, False))(),
]
return gof.Apply(self, inputs, outputs)
def infer_shape(self, node, shapes):
return [
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: rodluger/starry
Commit Name: f065b29cc8667c3012761b9509886411d8095e57
Time: 2020-03-25
Author: rodluger@gmail.com
File Name: starry/_core/ops/integration.py
Class Name: sTReflectedOp
Method Name: make_node
Project Name: rodluger/starry
Commit Name: 8f87f244813c98b98bbd379f973bdba0ed7a9c72
Time: 2020-04-30
Author: rodluger@gmail.com
File Name: starry/_core/ops/integration.py
Class Name: rTReflectedOp
Method Name: make_node
Project Name: Theano/Theano
Commit Name: 578573fcd5d3a2bfe0b81975631ce77ff99b2ed8
Time: 2017-12-19
Author: nouiz@nouiz.org
File Name: theano/gpuarray/basic_ops.py
Class Name: HostFromGpu
Method Name: make_node