ac866bb4b13cde0499641c0ff8e368032f91892c,brian2/equations/equations.py,Equations,check_units,#Equations#Any#Any#Any#,721
Before Change
run_namespace=run_namespace,
level=level+1)
for name, item in resolved_namespace.iteritems():
if isinstance(item, Function):
all_variables[name] = item
else:
unit = get_unit(item)
array_value = np.asarray(item)
all_variables[name] = Constant(name, unit=unit, value=array_value)
for var, eq in self._equations.iteritems():
if eq.type == PARAMETER:
// no need to check units for parameters
continue
After Change
resolved_namespace = group.resolve_all(external,
run_namespace=run_namespace,
level=level+1)
all_variables.update(resolved_namespace)
for var, eq in self._equations.iteritems():
if eq.type == PARAMETER:
// no need to check units for parameters
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: brian-team/brian2
Commit Name: ac866bb4b13cde0499641c0ff8e368032f91892c
Time: 2014-04-02
Author: marcel.stimberg@ens.fr
File Name: brian2/equations/equations.py
Class Name: Equations
Method Name: check_units
Project Name: tensorflow/transform
Commit Name: 41afa1d0c952d7a564e46313c1b624ee531b583c
Time: 2020-01-21
Author: tf-transform-dev@google.com
File Name: tensorflow_transform/beam/impl.py
Class Name: _RunMetaGraphDoFn
Method Name: _handle_batch
Project Name: tensorflow/cleverhans
Commit Name: f5298952a329e3e86d987ae35d1a27be2c93238e
Time: 2017-10-16
Author: fartash.faghri@gmail.com
File Name: examples/multigpu_advtrain/evaluator.py
Class Name:
Method Name: create_adv_by_name