a1ec4942396e6a722a494f9ddce15da67a2cf04a,theano/scalar/basic.py,IntDiv,c_code,#IntDiv#Any#Any#Any#Any#Any#,1924
Before Change
else:
raise NotImplementedError("type not supported", t)
return dedent(
if (%(y)s == 0) {
%(check)s
%(z)s = %(x_div_y_pp)s;
} else if (%(y)s < 0) {
if (%(x)s < 0) {
%(z)s = %(x_div_y_mm)s;
} else {
%(z)s = - %(x_div_y_pm)s - ((%(x_mod_y_pm)s == 0) ? 0 : 1);
}
} else {
if (%(x)s < 0) {
%(z)s = - %(x_div_y_mp)s - ((%(x_mod_y_mp)s == 0) ? 0 : 1);
} else {
%(z)s = %(x_div_y_pp)s;
}
}
) % locals()
def c_code_cache_version(self):
return (5,)
After Change
else:
raise NotImplementedError("type not supported", t)
return dedent(
if (%(y)s == 0) {
%(div_zero)s;
} else if (%(y)s < 0) {
if (%(x)s < 0) {
%(z)s = %(x_div_y_mm)s;
} else {
%(z)s = - %(x_div_y_pm)s - ((%(x_mod_y_pm)s == 0) ? 0 : 1);
}
} else {
if (%(x)s < 0) {
%(z)s = - %(x_div_y_mp)s - ((%(x_mod_y_mp)s == 0) ? 0 : 1);
} else {
%(z)s = %(x_div_y_pp)s;
}
}
) % locals()
def c_code_cache_version(self):
return (6,)
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: Theano/Theano
Commit Name: a1ec4942396e6a722a494f9ddce15da67a2cf04a
Time: 2017-04-20
Author: lamblinp@iro.umontreal.ca
File Name: theano/scalar/basic.py
Class Name: IntDiv
Method Name: c_code
Project Name: Theano/Theano
Commit Name: 15d5b26023b3bbb26792b229e46c56a33f97b10d
Time: 2017-04-16
Author: lamblinp@iro.umontreal.ca
File Name: theano/scalar/basic.py
Class Name: Mod
Method Name: c_code
Project Name: Theano/Theano
Commit Name: 15d5b26023b3bbb26792b229e46c56a33f97b10d
Time: 2017-04-16
Author: lamblinp@iro.umontreal.ca
File Name: theano/scalar/basic.py
Class Name: IntDiv
Method Name: c_code
Project Name: Theano/Theano
Commit Name: a1ec4942396e6a722a494f9ddce15da67a2cf04a
Time: 2017-04-20
Author: lamblinp@iro.umontreal.ca
File Name: theano/scalar/basic.py
Class Name: Mod
Method Name: c_code