Crate caffe2_predictor

source ·

Modules

Structs

  • | A thread safe vector of all ThreadLocalHelper, | this will be used to encapuslate the | locking in the APIs for the changes to | the global AllThreadLocalHelperVector instance. |
  • | benchmark runner takes an @emulator | to run nets. | | The runtime will be measured by @profiler. | | The output will be formatted by @formatter |
  • | @init_net: a reader net to generate | parameters | | @data_net: a reader net to generate | inputs |
  • | @run_net: the predict net with parameter | and input names | | @input_dims: the input dimensions | of all operator inputs of run_net | | @input_types: the input types of all | operator inputs of run_net |
  • | This struct stores information about | the inference graph which defines underlying | math of BlackBoxPredictor. Other parts of | it such as various threading optimizations | don’t belong here. |

  • | Stores parameters nessasary for creating | a PredictorInterface object. |
  • | A simple net supplier that always return | the same net and filler pair. | | The SingleLoadedNetSupplier contains | a shared ptr to a workspace with parameters | already loaded by net loader. |
  • | A simple net supplier that always return | the same net and filler pair. |
  • | Print the output of the emulator run | to stdout. |

  • | ThreadLocalHelper is per thread |

  • | ThreadLocalPtrImpl is per object |

Constants

Traits

  • | A net emulator. In short, it can run nets | with given @iterations. |
  • | A filler to initialize the parameters | and inputs of a predictor |
  • | An interface to supplier a pair of net | and its filler. | | The net should be able to run once the | filler fills the workspace. | | The supplier should take the ownership | of both net and filler. |
  • | An interface that formats the output | of the emulator runs. |
  • | An interface to profile the metrics | of a @runnable. | | It should return execution walltime | in milliseconds. |

Functions

Type Definitions