Download eval/bare_harness/Backend/utils/__init__.py from SLAI-AITP/AscendGYM: direct link, hf CLI and curl.
- Browser
- Download file 869 Bytes
-
https://huggingface.co/datasets/SLAI-AITP/AscendGYM/resolve/main/eval/bare_harness/Backend/utils/__init__.py
- Command line
-
hf download hf://datasets/SLAI-AITP/AscendGYM/eval/bare_harness/Backend/utils/__init__.py
-
curl -L -o __init__.py https://huggingface.co/datasets/SLAI-AITP/AscendGYM/resolve/main/eval/bare_harness/Backend/utils/__init__.py
869 Bytes
| """ | |
| 工具类模块 | |
| """ | |
| from .validators import ( | |
| validate_required_fields, | |
| validate_code_format, | |
| validate_shape, | |
| validate_dtype, | |
| validate_json_format, | |
| validate_operator_name, | |
| validate_test_cases | |
| ) | |
| from .exceptions import ( | |
| ValidationError, | |
| ServiceError, | |
| CompilationError, | |
| TestError, | |
| ConfigurationError | |
| ) | |
| from .naming import to_snake_case, to_snake_case_compact | |
| __all__ = [ | |
| # Validators | |
| 'validate_required_fields', | |
| 'validate_code_format', | |
| 'validate_shape', | |
| 'validate_dtype', | |
| 'validate_json_format', | |
| 'validate_operator_name', | |
| 'validate_test_cases', | |
| # Exceptions | |
| 'ValidationError', | |
| 'ServiceError', | |
| 'CompilationError', | |
| 'TestError', | |
| 'ConfigurationError', | |
| # Naming | |
| 'to_snake_case', | |
| 'to_snake_case_compact', | |
| ] | |