def before_run(self, run_context):
    requests = {'global_step': self._global_step_tensor}
    if self._request_summary:
        if (self._summary_op is not None):
            requests['summary'] = self._summary_op
        elif (self._scaffold.summary_op is not None):
            requests['summary'] = self._scaffold.summary_op
    return SessionRunArgs(requests)
def before_run(self, run_context):
    requests = {'global_step': self._global_step_tensor}
    if self._request_summary:
        if (self._summary_op is not None):
            requests['summary'] = self._summary_op
        elif (self._scaffold.summary_op is not None):
            requests['summary'] = self._scaffold.summary_op
    return SessionRunArgs(requests)