Add TODO
This commit is contained in:
parent
f8101400c2
commit
de084e8ce3
|
@ -6,8 +6,7 @@ def tensor(*args, **kwargs):
|
||||||
class Tensor:
|
class Tensor:
|
||||||
# TODO Implement 'requires_grad' functionality.
|
# TODO Implement 'requires_grad' functionality.
|
||||||
def __init__(self, value):
|
def __init__(self, value):
|
||||||
# NOTE We technically could support both numpy arrays and scalar values,
|
# TODO Add support for scalar values.
|
||||||
# but it is too much work.
|
|
||||||
if not isinstance(value, np.ndarray):
|
if not isinstance(value, np.ndarray):
|
||||||
print(f"{type(value)} is not compatible with {np.ndarray}")
|
print(f"{type(value)} is not compatible with {np.ndarray}")
|
||||||
exit(-1)
|
exit(-1)
|
||||||
|
|
Loading…
Reference in a new issue