U
    <c                     @   s:   d Z ddlZddlmZ ejG dd dejZe ZdS )z
GENERATED CODE - DO NOT EDIT DIRECTLY
This file is generated by gen_diagnostics.py.
See tools/onnx/gen_diagnostics.py for more information.

Diagnostic rules for PyTorch ONNX export.
    N)infrac                   @   s6  e Zd ZU ejejjf ddddidddddd	iid
dg ddddZeje	d< ejejjf ddddiddddddiid
dg ddddZ
eje	d< ejejjf ddddiddddddiid
dg ddddZeje	d< ejejjf ddddidddddd iid
dg ddddZeje	d!< d
S )"	_POERulesZPOE0001z!node-missing-onnx-shape-inferencetextz%Node is missing ONNX shape inference. zyNode is missing ONNX shape inference.
This usually happens when the node is not valid under standard ONNX operator spec.
)r   ZmarkdowndefaultzThe shape inference of {0} type is missing, so it may result in wrong shape inference for the exported graph. Please consider adding it in symbolic function.NF)
deprecatedtags)idnameZshort_descriptionZfull_descriptionZmessage_stringsZhelp_uriZ
properties)r   init!node_missing_onnx_shape_inferenceZPOE0002z missing-custom-symbolic-functionzUMissing symbolic function for custom PyTorch operator, cannot translate node to ONNX.zVMissing symbolic function for custom PyTorch operator, cannot translate node to ONNX.
zONNX export failed on an operator with unrecognized namespace {0}. If you are trying to export a custom operator, make sure you registered it with the right domain and version. missing_custom_symbolic_functionZPOE0003z"missing-standard-symbolic-functionzWMissing symbolic function for standard PyTorch operator, cannot translate node to ONNX.zXMissing symbolic function for standard PyTorch operator, cannot translate node to ONNX.
zExporting the operator '{0}' to ONNX opset version {1} is not supported. Please feel free to request support or submit a pull request on PyTorch GitHub: {2}."missing_standard_symbolic_functionZPOE0004z)operator-supported-in-newer-opset-versionz-Operator is supported in newer opset version.z{Operator is supported in newer opset version.

Example:
```python
torch.onnx.export(model, args, ..., opset_version=9)
```
zExporting the operator '{0}' to ONNX opset version {1} is not supported. Support for this operator was added in version {2}, try exporting with this version.)operator_supported_in_newer_opset_version)__name__
__module____qualname__dataclassesfieldr   ZRuleZ
from_sarifr   __annotations__r   r   r    r   r   K/tmp/pip-unpacked-wheel-gikjz4vx/torch/onnx/_internal/diagnostics/_rules.pyr      s   
       r   )__doc__r   Z torch.onnx._internal.diagnosticsr   Z	dataclassZRuleCollectionr   rulesr   r   r   r   <module>   s
   d