def _feed_data(self, program, feed, feed_var_name, scope):
    for op in program.global_block().ops:
        if (op.desc.type() == 'feed'):
            feed_target_name = op.desc.output('Out')[0]
            cur_feed = feed[feed_target_name]
            if (not isinstance(cur_feed, core.LoDTensor)):
                cur_feed = _as_lodtensor(cur_feed, self.place)
            idx = op.desc.attr('col')
            core.set_feed_variable(scope, cur_feed, feed_var_name, idx)
        else:
            break
def _feed_data(self, program, feed, feed_var_name, scope):
    for op in program.global_block().ops:
        if (op.desc.type() == 'feed'):
            feed_target_name = op.desc.output('Out')[0]
            cur_feed = feed[feed_target_name]
            if (not isinstance(cur_feed, core.LoDTensor)):
                cur_feed = _as_lodtensor(cur_feed, self.place)
            idx = op.desc.attr('col')
            core.set_feed_variable(scope, cur_feed, feed_var_name, idx)
        else:
            break