• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# DO NOT EDIT! This file was generated by jschema_to_python version 0.0.1.dev29,
2# with extension for dataclasses and type annotation.
3
4from __future__ import annotations
5
6import dataclasses
7from typing import Any, List, Optional
8
9from torch.onnx._internal.diagnostics.infra.sarif import (
10    _message,
11    _property_bag,
12    _thread_flow_location,
13)
14
15
16@dataclasses.dataclass
17class ThreadFlow(object):
18    """Describes a sequence of code locations that specify a path through a single thread of execution such as an operating system or fiber."""
19
20    locations: List[_thread_flow_location.ThreadFlowLocation] = dataclasses.field(
21        metadata={"schema_property_name": "locations"}
22    )
23    id: Optional[str] = dataclasses.field(
24        default=None, metadata={"schema_property_name": "id"}
25    )
26    immutable_state: Any = dataclasses.field(
27        default=None, metadata={"schema_property_name": "immutableState"}
28    )
29    initial_state: Any = dataclasses.field(
30        default=None, metadata={"schema_property_name": "initialState"}
31    )
32    message: Optional[_message.Message] = dataclasses.field(
33        default=None, metadata={"schema_property_name": "message"}
34    )
35    properties: Optional[_property_bag.PropertyBag] = dataclasses.field(
36        default=None, metadata={"schema_property_name": "properties"}
37    )
38
39
40# flake8: noqa
41