We have RunFromFiles interface which is an execution interface for users to call. Every time a user calls RunFromFiles, a main_program should be provided and it is running in the global scope previously defined. A list of file names and corresponding Dataset should be provided. Inside the RunFromFiles interface, readers will be created through Dataset configurations. Files will be fed into created readers.
thread_reader_->Start();// a reader should start to run a seperate thread first
while(intcur_batch=thread_reader_->Next()){
// all operators run here
for(auto&op:ops_){
op->Run(*thread_scope_,place_);
}
// remove intermediate variables created in child scope
thread_scope_->DropKids();
}
}
```
## How to print variable information during execution
## How to print variable information during execution
Inside async_executor, no information is printed. Variable can be fetched through an execution of async_executor. The fetched variables can be printed through python.
Inside async_executor, no information is printed. Variable can be fetched through an execution of async_executor. The fetched variables can be printed through python.