Function mgb::gopt::optimize_for_inference

Function Documentation

SymbolVarArray mgb::gopt::optimize_for_inference(const SymbolVarArray &dest_vars, const OptimizeForInferenceOptions &opt = {})

optimize a computing graph for inference

This function applies a set of predefined optimizer passes to optimize for inference. It assumes all params are constant.