141903a21846d54aaf09aa95a3bcdd8b673ee116,starry/ops/theano_op.py,StarryGradOp,perform,#StarryGradOp#Any#Any#Any#,67
Before Change
self.base_op.map[:, :] = y
self.base_op.map[:] = u
ro_ = tt .switch(tt.lt(zo, 0.0), ro, 0.0 ).eval()
_, grads = self.base_op.map.flux(theta=theta, xo=xo, yo=yo,
ro=ro_, gradient=True)
After Change
self.base_op.map[:, :] = y
// HACK: nudge at least one ylm away from zero
// to force starry to compute all derivatives
if (len(y) > 2) and (y[2] == 0):
self.base_op.map[1, 0] = 1.e-15
_, grads = self.base_op.map.flux(theta=theta, xo=xo, yo=yo, zo=zo,
ro=ro, gradient=True)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 2
Instances Project Name: rodluger/starry
Commit Name: 141903a21846d54aaf09aa95a3bcdd8b673ee116
Time: 2019-02-05
Author: rodluger@gmail.com
File Name: starry/ops/theano_op.py
Class Name: StarryGradOp
Method Name: perform
Project Name: farizrahman4u/recurrentshop
Commit Name: f96a0ea5337fb4dfc97f2a327768951db690676e
Time: 2016-10-31
Author: farizrahman4u@gmail.com
File Name: recurrentshop/engine.py
Class Name: RecurrentContainer
Method Name: step
Project Name: rodluger/starry
Commit Name: 141903a21846d54aaf09aa95a3bcdd8b673ee116
Time: 2019-02-05
Author: rodluger@gmail.com
File Name: starry/ops/theano_op.py
Class Name: StarryOp
Method Name: perform