mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-08 11:32:39 +02:00
Python 3 metaclass fix
This commit is contained in:
parent
35aec1c6d0
commit
273beca272
1 changed files with 2 additions and 1 deletions
|
|
@ -11,10 +11,11 @@ from functools import reduce
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class Kern(Parameterized):
|
class Kern(Parameterized,metaclass=KernCallsViaSlicerMeta):
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
# This adds input slice support. The rather ugly code for slicing can be
|
# This adds input slice support. The rather ugly code for slicing can be
|
||||||
# found in kernel_slice_operations
|
# found in kernel_slice_operations
|
||||||
|
# __mataclass__ is ignored in Python 3 - needs to be put in the function definiton
|
||||||
__metaclass__ = KernCallsViaSlicerMeta
|
__metaclass__ = KernCallsViaSlicerMeta
|
||||||
#===========================================================================
|
#===========================================================================
|
||||||
_support_GPU=False
|
_support_GPU=False
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue