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 2a7f3e1 commit 459de44Copy full SHA for 459de44
pytensor/tensor/sharedvar.py
@@ -3,7 +3,6 @@
3
import numpy as np
4
5
from pytensor.compile import SharedVariable, shared_constructor
6
-from pytensor.tensor import _get_vector_length
7
from pytensor.tensor.type import TensorType
8
from pytensor.tensor.variable import TensorVariable
9
@@ -51,11 +50,6 @@ def zero(self, borrow: bool = False):
51
50
self.container.value = 0 * self.container.value
52
53
54
-@_get_vector_length.register(TensorSharedVariable)
55
-def _get_vector_length_TensorSharedVariable(var_inst, var):
56
- return len(var.get_value(borrow=True))
57
-
58
59
@shared_constructor.register(np.ndarray)
60
def tensor_constructor(
61
value,
0 commit comments