diff options
author | Max Ryabinin <mryabinin0@gmail.com> | 2022-08-24 18:43:18 +0300 |
---|---|---|
committer | Max Ryabinin <mryabinin0@gmail.com> | 2022-08-24 18:43:18 +0300 |
commit | 9fc0ab415c564d278b673c694de9b884ea1121d2 (patch) | |
tree | 21686a913ca9801ddf9b5a31008550967ec822e6 /bitsandbytes/functional.py | |
parent | 9d60b3c5279641ba936facd710c722ebe52fcf40 (diff) |
Remove unused code
Diffstat (limited to 'bitsandbytes/functional.py')
-rw-r--r-- | bitsandbytes/functional.py | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/bitsandbytes/functional.py b/bitsandbytes/functional.py index 6637554..236c8ce 100644 --- a/bitsandbytes/functional.py +++ b/bitsandbytes/functional.py @@ -5,7 +5,6 @@ import ctypes as ct import operator import random -import math import torch from typing import Tuple @@ -248,23 +247,6 @@ def get_transform_func(dtype, orderA, orderOut, transpose=False): return getattr(lib, name) -class GlobalData(object): - _instance = None - - def __init__(self): - raise RuntimeError("Call get_instance() instead") - - def initialize(self): - self.data = {} - - @classmethod - def get_instance(cls): - if cls._instance is None: - cls._instance = cls.__new__(cls) - cls._instance.initialize() - return cls._instance - - def get_transform_buffer( shape, dtype, device, to_order, from_order="row", transpose=False ): |