neural_compressor.ux.web.router

Connector between api.py and components.

Module Contents

Classes

RoutingDefinition

Abstract routing definition.

RealtimeRoutingDefinition

Routing executed in realtime.

DeferredRoutingDefinition

Routing executed in separate thread.

DeferredSubprocessRoutingDefinition

Routing executed in separate thread and it spawns subprocess.

Router

Connector between api.py and components.

Functions

get_model_graph(...)

Get model graph.

find_pattern_in_graph(→ dict)

Find OP pattern in graph for diagnosis tab.

get_system_info(→ dict)

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.