MCPcopy Create free account
hub / github.com/AIS-SNU/Smart-Infinity / _parse_version

Function _parse_version

deepspeed/__init__.py:42–45  ·  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

40
41
42def _parse_version(version_str):
43 '''Parse a version string and extract the major, minor, and patch versions.'''
44 ver = pkg_version.parse(version_str)
45 return ver.major, ver.minor, ver.micro
46
47
48# Export version information

Callers 1

__init__.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected