(self)
return run_opts, run_metas
RunOptions and RunMetadata
RunOptions and RunMetadata
RunOptions and RunMetadata
def get_run_opts_metas(self):
    ''' RunOptions and RunMetadata '''
    opts_conf = self.config['solver']['run_options']
    run_opts = tf.RunOptions(
        trace_level=opts_conf['trace_level'],
        inter_op_thread_pool=opts_conf['inter_op_thread_pool'],
        report_tensor_allocations_upon_oom=opts_conf[
            'report_tensor_allocations_upon_oom'])
    run_metas = tf.RunMetadata()
    run_metas = None
    run_opts = None
    return run_opts, run_metas
def get_run_opts_metas ( self ) : opts_conf = self . config [ 'solver' ] [ 'run_options' ] run_opts = tf . RunOptions ( trace_level = opts_conf [ 'trace_level' ] , inter_op_thread_pool = opts_conf [ 'inter_op_thread_pool' ] , report_tensor_allocations_upon_oom = opts_conf [ 'report_tensor_allocations_upon_oom' ] ) run_metas = tf . RunMetadata ( ) run_metas = None run_opts = None return run_opts , run_metas