bert_max_doc_str_max_str_pos_clean_doc_noise_doc/run_doc_qa.py
def _run_model(self, session, feed_dict, opt_op):
        """Performans a forward and backward pass of the model."""

        fetches = [self._outputs[var_name]
                   for var_name in self._fetch_var_names]
        fetches.append(opt_op)

        all_outputs = session.run(fetches, feed_dict)

        fetched_var_dict = dict([
            (var_name, all_outputs[idx])
            for idx, var_name in enumerate(self._fetch_var_names)
        ])

        return fetched_var_dict
Performans a forward and backward pass of the model.
Performans a forward and backward pass of the model.
Performans a forward and backward pass of the model .
def _run_model(self, session, feed_dict, opt_op):
        fetches = [self._outputs[var_name]
                   for var_name in self._fetch_var_names]
        fetches.append(opt_op)
        all_outputs = session.run(fetches, feed_dict)
        fetched_var_dict = dict([
            (var_name, all_outputs[idx])
            for idx, var_name in enumerate(self._fetch_var_names)
        ])
        return fetched_var_dict
def _run_model ( self , session , feed_dict , opt_op ) : fetches = [ self . _outputs [ var_name ] for var_name in self . _fetch_var_names ] fetches . append ( opt_op ) all_outputs = session . run ( fetches , feed_dict ) fetched_var_dict = dict ( [ ( var_name , all_outputs [ idx ] ) for idx , var_name in enumerate ( self . _fetch_var_names ) ] ) return fetched_var_dict
Performans a forward and backward pass of the model.
Performans a forward and backward pass of the model .
"""Performans a forward and backward pass of the model."""
self
session
feed_dict
opt_op