We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfd4cb2 commit f4f4a03Copy full SHA for f4f4a03
redisai/tensor.py
@@ -1,6 +1,7 @@
1
+from typing import Union, ByteString, Collection
2
+import warnings
3
from .utils import convert_to_num
4
from .constants import DType
-from typing import Union, ByteString, Collection
5
try:
6
import numpy as np
7
except (ImportError, ModuleNotFoundError):
@@ -14,6 +15,8 @@ def __init__(self,
14
15
dtype: DType,
16
shape: Collection[int],
17
value):
18
+ warnings.warn("Tensor APIs are depricated and "
19
+ "will be removed from the future release.", UserWarning)
20
"""
21
Declare a tensor suitable for passing to tensorset
22
:param dtype: The type the values should be stored as.
0 commit comments