From de084e8ce3302272474085d5f87eae1536cc43e6 Mon Sep 17 00:00:00 2001 From: aodhneine Date: Sun, 15 Nov 2020 22:11:05 +0000 Subject: [PATCH] Add TODO --- pygrad/tensor.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pygrad/tensor.py b/pygrad/tensor.py index 0f0cc8b..400a2a8 100644 --- a/pygrad/tensor.py +++ b/pygrad/tensor.py @@ -6,8 +6,7 @@ def tensor(*args, **kwargs): class Tensor: # TODO Implement 'requires_grad' functionality. def __init__(self, value): - # NOTE We technically could support both numpy arrays and scalar values, - # but it is too much work. + # TODO Add support for scalar values. if not isinstance(value, np.ndarray): print(f"{type(value)} is not compatible with {np.ndarray}") exit(-1)