MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / _parse_version

Function _parse_version

deepspeed/__init__.py:75–78  ·  view source on GitHub ↗

Parse a version string and extract the major, minor, and patch versions.

(version_str)

Source from the content-addressed store, hash-verified

73
74
75def _parse_version(version_str):
76 '''Parse a version string and extract the major, minor, and patch versions.'''
77 ver = pkg_version.parse(version_str)
78 return ver.major, ver.minor, ver.micro
79
80
81# Export version information

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected