Skip to content

Commit cd44a2b

Browse files
committed
Remove unused return_internal_type
1 parent 5e04917 commit cd44a2b

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

pytensor/compile/sharedvalue.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,17 +92,14 @@ def __init__(
9292

9393
self._default_update: Optional[Variable] = None
9494

95-
def get_value(self, borrow=False, return_internal_type=False):
95+
def get_value(self, borrow=False):
9696
"""
9797
Get the non-symbolic value associated with this SharedVariable.
9898
9999
Parameters
100100
----------
101101
borrow : bool
102102
True to permit returning of an object aliased to internal memory.
103-
return_internal_type : bool
104-
True to permit the returning of an arbitrary type object used
105-
internally to store the shared variable.
106103
107104
Only with borrow=False and return_internal_type=True does this function
108105
guarantee that you actually get the internal object.
@@ -134,7 +131,7 @@ def set_value(self, new_value, borrow=False):
134131
self.container.value = copy.deepcopy(new_value)
135132

136133
def get_test_value(self):
137-
return self.get_value(borrow=True, return_internal_type=True)
134+
return self.get_value(borrow=True)
138135

139136
def clone(self, **kwargs):
140137
name = kwargs.get("name", self.name)

0 commit comments

Comments
 (0)