60ac44f9e688577d47ae506be06058a8916af100,niftynet/engine/image_window.py,ImageWindow,_update_placeholders_dict,#ImageWindow#Any#,155
Before Change
"shape should be defined as dict of iterable %s", self._shapes)
raise
// extending names with names of coordinates
names.extend([LOCATION_FORMAT.format(name) for name in names] )
// extending placeholders with names of coordinates
location_shape = [self.n_samples, 1 + N_SPATIAL * 2]
placeholders.extend(
After Change
try:
self._placeholders_dict = {}
for name in list(self.tf_dtypes):
self._placeholders_dict[name] = tf.placeholder(
dtype=self.tf_dtypes[name],
shape=self.shapes[name],
name=name)
except TypeError:
tf.logging.fatal(
"shape should be defined as dict of iterable %s", self.shapes)
raise
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: NifTK/NiftyNet
Commit Name: 60ac44f9e688577d47ae506be06058a8916af100
Time: 2018-05-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name: ImageWindow
Method Name: _update_placeholders_dict
Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_sym
Project Name: keras-team/keras
Commit Name: b6d23b2e2dfc90480519ab52047006b1936fda02
Time: 2016-07-28
Author: jer.despraz@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: batch_set_value