Skip to content

Commit 88d9941

Browse files
Abhinav-KhotricardoV94
authored andcommitted
Add support for negative values in psi
1 parent 88476b4 commit 88d9941

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pytensor/scalar/math.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -378,6 +378,13 @@ def L_op(self, inputs, outputs, grads):
378378

379379
def c_support_code(self, **kwargs):
380380
return """
381+
// For GPU support
382+
#ifdef WITHIN_KERNEL
383+
#define DEVICE WITHIN_KERNEL
384+
#else
385+
#define DEVICE
386+
#endif
387+
381388
#ifndef M_PI
382389
#define M_PI 3.14159265358979323846
383390
#endif

0 commit comments

Comments
 (0)