Skip to content

Commit f4f4a03

Browse files
author
hhsecond
committed
deprication notice
1 parent bfd4cb2 commit f4f4a03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

redisai/tensor.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
from typing import Union, ByteString, Collection
2+
import warnings
13
from .utils import convert_to_num
24
from .constants import DType
3-
from typing import Union, ByteString, Collection
45
try:
56
import numpy as np
67
except (ImportError, ModuleNotFoundError):
@@ -14,6 +15,8 @@ def __init__(self,
1415
dtype: DType,
1516
shape: Collection[int],
1617
value):
18+
warnings.warn("Tensor APIs are depricated and "
19+
"will be removed from the future release.", UserWarning)
1720
"""
1821
Declare a tensor suitable for passing to tensorset
1922
:param dtype: The type the values should be stored as.

0 commit comments

Comments
 (0)