cd90b064de4b8d24e9419b3458c83626db356be7,niftynet/engine/application_driver.py,ApplicationDriver,_inference_loop,#ApplicationDriver#Any#Any#,408

Before Change


                break

            // build variables to run
            vars_to_run = dict()
            vars_to_run[NETWORK_OUTPUT], vars_to_run[CONSOLE] = \
                self.outputs_collector.variables(NETWORK_OUTPUT), \
                self.outputs_collector.variables(CONSOLE)

            // evaluate the graph variables
            graph_output = sess.run(vars_to_run)

            // process the graph outputs
            if not self.app.interpret_output(graph_output[NETWORK_OUTPUT]):
                tf.logging.info("processed all batches.")

After Change


        
        iter_msg = IterationMessage()
        loop_status["all_saved_flag"] = False
        iter_i = 0
        while True:
            if self._coord.should_stop():
                break
            if iter_msg.should_stop:
                break

            iter_msg.current_iter, iter_msg.phase = iter_i, INFER
            // run variables provided in `iter_msg` and set values of
            // variables to iter_msg.current_iter_output
            self.app.set_iteration_update(iter_msg)
            self.run_vars(sess, iter_msg)
            self.app.set_iteration_update(iter_msg)
            iter_i = iter_i + 1

            // process the graph outputs
            if not self.app.interpret_output(
                    iter_msg.current_iter_output[NETWORK_OUTPUT]):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 6

Instances


Project Name: NifTK/NiftyNet
Commit Name: cd90b064de4b8d24e9419b3458c83626db356be7
Time: 2017-11-14
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _inference_loop


Project Name: brian-team/brian2
Commit Name: c84200e9bb97b39a73778e5b32df3b85cb2614c9
Time: 2013-06-25
Author: dan.goodman@ens.fr
File Name: brian2/tests/test_syntax_translation.py
Class Name:
Method Name: parse_expressions


Project Name: mne-tools/mne-python
Commit Name: 017d156706984b88a524b146ec71415c65b42391
Time: 2019-05-14
Author: w.m.vanvliet@gmail.com
File Name: examples/inverse/plot_dics_source_power.py
Class Name:
Method Name:


Project Name: reinforceio/tensorforce
Commit Name: caa5ccc42c3d7e0004688a91e9e4a5b42b1a8957
Time: 2020-02-11
Author: alexkuhnle@t-online.de
File Name: test/test_documentation.py
Class Name: TestDocumentation
Method Name: test_readme


Project Name: reinforceio/tensorforce
Commit Name: 89ef2b21c7ea77929819dec7ba589c13c49bd702
Time: 2019-01-26
Author: alexkuhnle@t-online.de
File Name: tensorforce/core/models/distribution_model.py
Class Name: DistributionModel
Method Name: __init__