Caffe2 - C++ API
A deep learning, cross platform ML framework
Public Member Functions | Data Fields | Friends
torch::jit::CodeImpl Struct Reference

Public Member Functions

 CodeImpl (const std::shared_ptr< Graph > &graph_)
 
void createJumpFalse (int from_inst, int to_inst)
 
void createJumpTrue (int from_inst, int to_inst)
 
void createJump (int from_inst, int to_inst)
 
void insertNodesFromBlock (Block *block)
 
size_t insertInstruction (Node *n)
 
size_t insertInstruction (Symbol sym, std::shared_ptr< SourceLocation > debug_location, ArrayRef< Value * > inputs, ArrayRef< uint8_t > move_flags, ArrayRef< Value * > outputs)
 
ArrayRef< uint8_t > moveFlags (Node *n)
 
ArrayRef< uint8_t > moveFlags (Block *b)
 
size_t insertAssign (std::shared_ptr< SourceLocation > debug_location, ArrayRef< Value * > inputs, ArrayRef< uint8_t > move_flags, ArrayRef< Value * > outputs)
 
int get (const ListHandle< int > &list, int i) const
 
bool get (const ListHandle< bool > &list, int i) const
 
void listBegin (ListHandle< int > &list)
 
void listInsert (ListHandle< int > &list, int value)
 
void listBegin (ListHandle< bool > &list)
 
void listInsert (ListHandle< bool > &list, int value)
 
void aliasRegistersTo (ArrayRef< Value * > new_allocations, ArrayRef< Value * > existing_allocations)
 
int getOrAllocateRegister (Value *n, bool required=false)
 
const std::vector< GraphExecutor * > & grad_executors ()
 
void dumpInstruction (std::ostream &out, size_t pc) const
 
void dump (std::ostream &out) const
 

Data Fields

std::shared_ptr< Graphgraph
 
c10::optional< std::vector< GraphExecutor * > > grad_executors_
 
PreprocessGraph preprocess
 
std::unordered_map< size_t, int > unique_to_reg
 
std::vector< Instructioninstructions
 
int register_size = 0
 
std::vector< int > int_data
 
std::vector< bool > bool_data
 

Friends

struct InterpreterState
 

Detailed Description

Definition at line 373 of file interpreter.cpp.


The documentation for this struct was generated from the following file: