First commit
This commit is contained in:
12
pkgs/xformers/_deprecation_warning.py
Normal file
12
pkgs/xformers/_deprecation_warning.py
Normal file
@@ -0,0 +1,12 @@
|
||||
# Copyright (c) Facebook, Inc. and its affiliates. All rights reserved.
|
||||
#
|
||||
# This source code is licensed under the BSD license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
import warnings
|
||||
|
||||
|
||||
def deprecated_function(self):
|
||||
name = repr(self) # self.__name__
|
||||
msg = f"{name} is deprecated and is not maintained anymore. It might be removed in a future version of xFormers"
|
||||
warnings.warn(msg, FutureWarning, stacklevel=2)
|
||||
Reference in New Issue
Block a user