mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-03 16:52:39 +02:00
parameters ndarray, stuck at using strides for transformations
This commit is contained in:
parent
645aa0f420
commit
2ced667193
1 changed files with 4 additions and 1 deletions
|
|
@ -210,7 +210,10 @@ class Parameter(numpy.ndarray):
|
|||
# import ipdb;ipdb.set_trace()
|
||||
new_arr = numpy.ndarray.__getitem__(self, s, *args, **kwargs)
|
||||
new_arr = new_arr.view(self.__class__)
|
||||
new_arr._current_slice = s
|
||||
try:
|
||||
new_arr._current_slice = s
|
||||
except AttributeError:
|
||||
pass
|
||||
return new_arr
|
||||
# def __getitem__(self, s):
|
||||
# try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue