Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

#609 Ci fix

Merged
Ghost merged 1 commits into Deci-AI:master from deci-ai:bugfix/infra-000_ci
1
2
3
4
5
6
7
8
9
10
  1. import torch
  2. _TORCH_VERSION_MAJOR_MINOR_ = tuple(map(int, torch.version.__version__.split(".")[:2]))
  3. __all__ = ["torch_version_is_greater_or_equal"]
  4. def torch_version_is_greater_or_equal(major: int, minor: int) -> bool:
  5. version = (major, minor)
  6. return _TORCH_VERSION_MAJOR_MINOR_ >= version
Discard
Tip!

Press p or to see the previous file or, n or to see the next file