--- title: utils keywords: fastai sidebar: home_sidebar summary: "Various utility classes and functions used by the `BLURR` library." description: "Various utility classes and functions used by the `BLURR` library." nb_path: "nbs/00_utils.ipynb" ---
@Singleton
class TestSingleton:
pass
a = TestSingleton()
b = TestSingleton()
test_eq(a, b)
How to use:
print(str_to_type("test_eq"))
print(str_to_type("TestSingleton"))
How to use:
print_versions("torch transformers fastai")
print("---")
print_versions(["torch", "transformers", "fastai"])