config
最后更新
luxonis_ml.nn_archive.config类
Config
方法
validate_config_version_format
Python
1def validate_config_version_format(v: str) -> str:major.minor 格式。示例
Pycon
1>>> Config.validate_config_version_format("1.0")
2'1.0'
3>>> Config.validate_config_version_format("1")
4Traceback (most recent call last):
5...
6ValueError: 'config_version' must be in format 'x.y' where x and y are integersv(str): 模式版本字符串。
str: 验证后的模式版本。
ValueError: 如果v不是major.minor格式,其中两部分都是整数。
属性
config_version
major.minor 格式的模式版本。