Module Import alias identifier Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias Assign NameStore ListLoad Str Str Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr keyword NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad keyword NameLoad Assign NameStore Call NameLoad NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call AttributeLoad Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call NameLoad AttributeLoad NameLoad attr Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list ClassDef bases AttributeLoad NameLoad attr body FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr Num Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body TryFinally body TryExcept body While NameLoad body For NameStore Call AttributeLoad AttributeLoad NameLoad attr attr body If Call AttributeLoad AttributeLoad NameLoad attr attr body Return Assign NameStore Call NameLoad Call NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr keyword NameLoad keyword AttributeLoad NameLoad attr handlers ExceptHandler type AttributeLoad AttributeLoad NameLoad attr attr name NameStore body Pass ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr finalbody Expr Call AttributeLoad NameLoad attr Str decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr If CompareIs NameLoad NameLoad body Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Num ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr keyword Str orelse Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad If AttributeLoad NameLoad attr body Assert CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore ListLoad For NameStore Call NameLoad NameLoad body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index Num Index Num TryExcept body Assign NameStore BinOpDiv Call AttributeLoad NameLoad attr ListComp SubscriptLoad NameLoad Index Num comprehension NameStore NameLoad Call NameLoad Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad NameLoad attr Raise Expr Call AttributeLoad NameLoad attr TupleLoad NameLoad NameLoad Return NameLoad decorator_list NameLoad FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If Call NameLoad NameLoad AttributeLoad NameLoad attr body Assign NameStore ListLoad NameLoad Assert CompareEq Call NameLoad NameLoad Call NameLoad AttributeLoad NameLoad attr For TupleStore NameStore NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr AttributeLoad AttributeLoad NameLoad attr attr Assign NameStore ListLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign NameStore Dict Assign NameStore ListLoad For NameStore Call NameLoad AttributeLoad AttributeLoad NameLoad attr attr body With Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad body With Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad NameStore body Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad keyword NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad keyword Num If CompareEq NameLoad Num body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Expr Call AttributeLoad Call AttributeLoad NameLoad attr attr For NameStore NameLoad body Assign SubscriptStore NameLoad Index NameLoad Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr NameLoad For NameStore NameLoad body Delete SubscriptDel Call AttributeLoad NameLoad attr NameLoad Slice Expr Call AttributeLoad Call AttributeLoad NameLoad attr NameLoad attr SubscriptLoad NameLoad Index NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr If CompareGt AttributeLoad AttributeLoad NameLoad attr attr Num body Assign NameStore Call AttributeLoad NameLoad attr If UnaryOpNot AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore ListComp Call AttributeLoad NameLoad attr NameLoad comprehension NameStore NameLoad FunctionDef arguments args NameParam defaults body Return ListComp TupleLoad BinOpDiv NameLoad AttributeLoad AttributeLoad NameLoad attr attr NameLoad comprehension TupleStore NameStore NameStore NameLoad decorator_list Assign NameStore Call NameLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index Num orelse Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign AttributeStore NameLoad attr Call AttributeLoad NameLoad attr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Call NameLoad Call NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr ListLoad For NameStore Call NameLoad Num AttributeLoad AttributeLoad NameLoad attr attr body Assign NameStore Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr SubscriptLoad NameLoad Index NameLoad Assign NameStore Lambda arguments args NameParam defaults NameLoad Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad NameLoad Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body If UnaryOpNot AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr NameLoad For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr If CompareIsNot AttributeLoad NameLoad attr NameLoad body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr decorator_list
N/A N/A tensorflow tf N/A threading N/A copy N/A re N/A functools six.moves zip base Trainer dataflow.common RepeatedData utils * utils.concurrency LoopThread tfutils.summary summary_moving_average tfutils * N/A __all__ N/A SimpleTrainer QueueInputTrainer start_train SimpleTrainer N/A Trainer N/A run_step N/A N/A self N/A N/A N/A data N/A next N/A self data_producer N/A feed N/A dict N/A zip N/A self input_vars data N/A N/A N/A N/A self sess run N/A N/A self train_op feed_dict feed N/A train N/A N/A self N/A N/A N/A model N/A self model N/A input_vars N/A N/A model get_input_vars N/A N/A self input_vars input_vars N/A cost_var N/A N/A model get_cost input_vars is_training True N/A avg_maintain_op N/A summary_moving_average cost_var N/A grads N/A N/A N/A N/A self config optimizer compute_gradients cost_var N/A grads N/A N/A self process_grads grads N/A N/A self train_op N/A N/A tf group N/A N/A N/A N/A self config optimizer apply_gradients grads N/A get_global_step_var avg_maintain_op N/A N/A N/A self init_session_and_coord N/A N/A self data_producer N/A N/A N/A RepeatedData N/A N/A self config dataset -1 get_data N/A N/A N/A self main_loop N/A _trigger_epoch N/A N/A self N/A N/A N/A N/A N/A self summary_op None N/A N/A data N/A next N/A self data_producer N/A feed N/A dict N/A zip N/A self input_vars data N/A summary_str N/A N/A N/A self summary_op eval feed_dict feed N/A N/A N/A self _process_summary summary_str N/A N/A EnqueueThread N/A N/A threading Thread N/A __init__ N/A N/A self trainer queue enqueue_op raw_input_var N/A N/A N/A N/A N/A N/A super EnqueueThread self __init__ N/A N/A self sess N/A trainer sess N/A N/A self coord N/A trainer coord N/A N/A self dataflow N/A RepeatedData N/A N/A trainer config dataset -1 N/A N/A self input_vars raw_input_var N/A N/A self op enqueue_op N/A N/A self queue queue N/A N/A self close_op N/A N/A N/A self queue close cancel_pending_enqueues True N/A N/A self daemon True N/A run N/A N/A self N/A N/A N/A N/A N/A N/A N/A True N/A N/A dp N/A N/A N/A self dataflow get_data N/A N/A N/A N/A N/A self coord should_stop N/A N/A N/A feed N/A dict N/A zip N/A self input_vars dp N/A N/A N/A N/A self op run feed_dict feed session N/A self sess N/A N/A N/A N/A N/A tf errors CancelledError N/A e N/A N/A N/A N/A Exception N/A N/A N/A N/A logger exception Exception in EnqueueThread: N/A N/A N/A N/A self sess run N/A self close_op N/A N/A N/A N/A self coord request_stop N/A N/A N/A N/A logger info Enqueue Thread Exited. N/A N/A QueueInputTrainer N/A Trainer N/A N/A 
    Trainer which builds a FIFO queue for input.
    Support multi GPU.
     __init__ N/A N/A self config input_queue async N/A None False N/A N/A 
        :param config: a `TrainConfig` instance
        :param input_queue: a `tf.QueueBase` instance to be used to buffer datapoints.
            Defaults to a FIFO queue of size 100.
         N/A N/A N/A N/A super QueueInputTrainer self __init__ config N/A N/A self input_vars N/A N/A N/A self model get_input_vars N/A N/A input_queue None N/A N/A N/A self input_queue N/A N/A tf FIFOQueue 100 N/A N/A x dtype N/A x N/A self input_vars name input_queue N/A N/A N/A self input_queue input_queue N/A N/A self async async N/A N/A self async N/A N/A N/A N/A N/A self config nr_tower 1 N/A _average_grads N/A N/A tower_grads N/A N/A N/A ret N/A N/A grad_and_vars N/A zip tower_grads N/A N/A v N/A N/A grad_and_vars N/A 0 N/A 1 N/A N/A N/A grad N/A N/A N/A tf add_n N/A N/A x N/A 0 N/A x grad_and_vars N/A float N/A len tower_grads N/A N/A N/A AssertionError N/A N/A N/A N/A logger error N/A N/A Error while processing gradients of {} format N/A v name N/A N/A N/A N/A ret append N/A grad v N/A ret N/A staticmethod _get_model_inputs N/A N/A self N/A N/A N/A  Dequeue a datapoint from input_queue and return N/A ret N/A N/A N/A self input_queue dequeue N/A N/A isinstance ret N/A tf Tensor N/A N/A ret N/A ret N/A N/A N/A len ret N/A len N/A self input_vars N/A N/A qv v N/A zip ret N/A self input_vars N/A N/A N/A N/A qv set_shape N/A N/A v get_shape N/A ret N/A _single_tower_grad N/A N/A self N/A N/A N/A  Get grad and cost for single-tower case N/A model_inputs N/A N/A self _get_model_inputs N/A cost_var N/A N/A N/A self model get_cost model_inputs is_training True N/A grads N/A N/A N/A N/A self config optimizer compute_gradients cost_var N/A N/A N/A tf add_to_collection MOVING_SUMMARY_VARS_KEY cost_var N/A grads N/A _multi_tower_grads N/A N/A self N/A N/A N/A N/A N/A logger info N/A N/A Training a model of {} tower format N/A N/A self config nr_tower N/A collect_dedup N/A N/A N/A tf GraphKeys SUMMARIES MOVING_SUMMARY_VARS_KEY N/A kept_summaries N/A N/A grad_list N/A N/A i N/A range N/A N/A self config nr_tower N/A N/A N/A N/A tf device N/A N/A /gpu:{} format i N/A N/A N/A N/A tf name_scope N/A N/A tower{} format i scope N/A N/A N/A N/A logger info N/A N/A Building graph for tower {}... format i N/A model_inputs N/A N/A self _get_model_inputs N/A cost_var N/A N/A N/A self model get_cost model_inputs is_training True N/A N/A N/A grad_list append N/A N/A N/A N/A self config optimizer compute_gradients cost_var gate_gradients 0 N/A N/A i 0 N/A N/A N/A N/A tf add_to_collection MOVING_SUMMARY_VARS_KEY cost_var N/A N/A N/A N/A N/A tf get_variable_scope reuse_variables N/A k collect_dedup N/A N/A N/A kept_summaries N/A k N/A N/A copy copy N/A N/A tf get_collection k N/A k collect_dedup N/A N/A N/A N/A N/A tf get_collection_ref k N/A N/A N/A N/A N/A N/A tf get_collection_ref k extend N/A kept_summaries N/A k N/A grad_list N/A train N/A N/A self N/A N/A N/A enqueue_op N/A N/A N/A self input_queue enqueue N/A self input_vars N/A N/A N/A N/A self config nr_tower 1 N/A N/A grad_list N/A N/A self _multi_tower_grads N/A N/A N/A self async N/A N/A grads N/A N/A QueueInputTrainer _average_grads grad_list N/A grads N/A N/A self process_grads grads N/A N/A grad_list N/A N/A N/A self process_grads g N/A g grad_list scale N/A N/A grads N/A N/A N/A N/A N/A N/A grad N/A N/A self config nr_tower var N/A N/A grad var grads N/A N/A grad_list N/A map scale grad_list N/A grads N/A grad_list N/A 0 N/A N/A grads N/A N/A self _single_tower_grad N/A grads N/A N/A self process_grads grads N/A N/A self train_op N/A N/A tf group N/A N/A N/A N/A self config optimizer apply_gradients grads N/A get_global_step_var N/A summary_moving_average N/A N/A self async N/A N/A N/A self threads N/A N/A k N/A range 1 N/A N/A self config nr_tower N/A N/A train_op N/A N/A N/A N/A self config optimizer apply_gradients N/A grad_list N/A k N/A f N/A N/A N/A op N/A train_op N/A N/A N/A self sess run N/A op N/A th N/A LoopThread f N/A N/A N/A th pause N/A N/A N/A th start N/A N/A N/A N/A self threads append th N/A N/A self async_running False N/A N/A N/A self init_session_and_coord N/A N/A self input_th N/A EnqueueThread self N/A self input_queue enqueue_op N/A self input_vars N/A N/A N/A self main_loop N/A _start_all_threads N/A N/A self N/A N/A N/A N/A N/A N/A super QueueInputTrainer self _start_all_threads N/A N/A N/A N/A self input_th start N/A run_step N/A N/A self N/A N/A N/A N/A self async N/A N/A N/A N/A self async_running N/A N/A N/A self async_running True N/A th N/A self threads N/A N/A N/A N/A th resume N/A N/A N/A N/A self sess run N/A N/A self train_op N/A _trigger_epoch N/A N/A self N/A N/A N/A N/A self async N/A N/A N/A self async_running False N/A th N/A self threads N/A N/A N/A N/A th pause N/A N/A N/A self summary_op None N/A N/A summary_str N/A N/A N/A self summary_op eval N/A N/A N/A self _process_summary summary_str N/A N/A start_train N/A N/A config N/A N/A N/A tr N/A QueueInputTrainer config N/A N/A N/A tr train N/A