cd6f4ef94f6adca1bf84795e74d96f80f532363e,theano/gof/fg.py,FunctionGraph,replace,#FunctionGraph#Any#Any#Any#Any#,454
Before Change
raise TypeError("The type of the replacement must be "
"compatible with the type of the original "
"Variable.", r, new_r, r.type, new_r.type,
str(reason) )
new_r = new_r2
if r not in self.variables:
// this variable isn"t in the graph... don"t raise an
After Change
new_r2 = r.type.convert_variable(new_r)
// We still make sure that the type converts correctly
if new_r2 is None or new_r2.type != r.type:
done = dict()
used_ids = dict()
old = theano.compile.debugmode.debugprint(
r, prefix=" ", depth=6,
file=StringIO(), done=done,
print_type=True,
used_ids=used_ids).getvalue()
new = theano.compile.debugmode.debugprint(
new_r, prefix=" ", depth=6,
file=StringIO(), done=done,
print_type=True,
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: Theano/Theano
Commit Name: cd6f4ef94f6adca1bf84795e74d96f80f532363e
Time: 2017-04-13
Author: nouiz@nouiz.org
File Name: theano/gof/fg.py
Class Name: FunctionGraph
Method Name: replace
Project Name: idaholab/raven
Commit Name: 8ad7ca870d68695fd47d9962e565a1e0f7f73f8c
Time: 2021-01-25
Author: paul.talbot@inl.gov
File Name: framework/Models/EnsembleModel.py
Class Name: EnsembleModel
Method Name: __advanceModel
Project Name: GoogleCloudPlatform/professional-services
Commit Name: 1c9f9302d3a556d1dcdc118fb3a58c6b007c717d
Time: 2018-07-13
Author: danielrdeleo@gmail.com
File Name: data-analytics/cloud-composer-examples/composer_http_post_example/spark_avg_speed.py
Class Name: AverageSpeedEnhancer
Method Name: dict_to_csv