neural_compressor.ux.web.router
¶
Connector between api.py and components.
Module Contents¶
Classes¶
Abstract routing definition. |
|
Routing executed in realtime. |
|
Routing executed in separate thread. |
|
Routing executed in separate thread and it spawns subprocess. |
|
Connector between api.py and components. |
Functions¶
|
Get model graph. |
|
Find OP pattern in graph for diagnosis tab. |
|
Get system info. |
- class neural_compressor.ux.web.router.RoutingDefinition(callback: Callable[[Dict[str, Any]], Any])¶
Abstract routing definition.
- class neural_compressor.ux.web.router.RealtimeRoutingDefinition(callback: Callable[[Dict[str, Any]], Any])¶
Bases:
RoutingDefinition
Routing executed in realtime.
- class neural_compressor.ux.web.router.DeferredRoutingDefinition(callback: Callable[[Dict[str, Any]], Any])¶
Bases:
RoutingDefinition
Routing executed in separate thread.
- class neural_compressor.ux.web.router.DeferredSubprocessRoutingDefinition(callback: Callable[[Dict[str, Any]], Any])¶
Bases:
RoutingDefinition
Routing executed in separate thread and it spawns subprocess.
- class neural_compressor.ux.web.router.Router¶
Connector between api.py and components.
- handle(request: neural_compressor.ux.web.communication.Request) neural_compressor.ux.web.communication.Response ¶
Run operation on requested component and return result.
- neural_compressor.ux.web.router.get_model_graph(data: Dict[str, Any]) neural_compressor.ux.components.graph.graph.Graph ¶
Get model graph.
- neural_compressor.ux.web.router.find_pattern_in_graph(data: Dict[str, Any]) dict ¶
Find OP pattern in graph for diagnosis tab.
- neural_compressor.ux.web.router.get_system_info(data: Dict[str, Any]) dict ¶
Get system info.