e9fb47f90dacd64ee9bfe7aafca59b5ff75e739f,niftynet/engine/input_buffer.py,InputBatchQueueRunner,_push,#InputBatchQueueRunner#Any#,105

Before Change


                if self._coordinator.should_stop():
                    break
                self._session.run(self._enqueue_op, feed_dict=output_dict)
            import pdb; pdb.set_trace()

                //// push a set of stopping patches
                // for i in range(0, self.capacity):
                //    if self._session._closed:

After Change


                    break
                if self._coordinator.should_stop():
                    break
                for name in list(output_dict):
                    output_dict[name] = np.zeros_like(output_dict[name])
                self._session.run(self._enqueue_op, feed_dict=output_dict)

        except tf.errors.CancelledError:
            pass
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: NifTK/NiftyNet
Commit Name: e9fb47f90dacd64ee9bfe7aafca59b5ff75e739f
Time: 2017-08-13
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/input_buffer.py
Class Name: InputBatchQueueRunner
Method Name: _push


Project Name: NifTK/NiftyNet
Commit Name: 09f72ac06873b4069b8fddad769be3f1148a5791
Time: 2017-08-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/application/segmentation_application.py
Class Name: SegmentationApplication
Method Name: connect_data_and_network


Project Name: NifTK/NiftyNet
Commit Name: fd8ca0c975e380dfcd7239408258b5852be33f06
Time: 2017-08-12
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/sampler_grid.py
Class Name: GridSampler
Method Name: layer_op