@@ -3237,7 +3237,7 @@ def L_op(self, inputs, outputs, gout):
3237
3237
else :
3238
3238
return [x .zeros_like ()]
3239
3239
3240
- return (gz * exp2 (x ) * log (np .array (2 , dtype = x .type )),)
3240
+ return (gz * exp2 (x ) * log (np .array (2 , dtype = x .dtype )),)
3241
3241
3242
3242
def c_code (self , node , name , inputs , outputs , sub ):
3243
3243
(x ,) = inputs
@@ -3484,7 +3484,7 @@ def L_op(self, inputs, outputs, gout):
3484
3484
else :
3485
3485
return [x .zeros_like ()]
3486
3486
3487
- return (- gz / sqrt (np .array (1 , dtype = x .type ) - sqr (x )),)
3487
+ return (- gz / sqrt (np .array (1 , dtype = x .dtype ) - sqr (x )),)
3488
3488
3489
3489
def c_code (self , node , name , inputs , outputs , sub ):
3490
3490
(x ,) = inputs
@@ -3558,7 +3558,7 @@ def L_op(self, inputs, outputs, gout):
3558
3558
else :
3559
3559
return [x .zeros_like ()]
3560
3560
3561
- return (gz / sqrt (np .array (1 , dtype = x .type ) - sqr (x )),)
3561
+ return (gz / sqrt (np .array (1 , dtype = x .dtype ) - sqr (x )),)
3562
3562
3563
3563
def c_code (self , node , name , inputs , outputs , sub ):
3564
3564
(x ,) = inputs
@@ -3630,7 +3630,7 @@ def L_op(self, inputs, outputs, gout):
3630
3630
else :
3631
3631
return [x .zeros_like ()]
3632
3632
3633
- return (gz / (np .array (1 , dtype = x .type ) + sqr (x )),)
3633
+ return (gz / (np .array (1 , dtype = x .dtype ) + sqr (x )),)
3634
3634
3635
3635
def c_code (self , node , name , inputs , outputs , sub ):
3636
3636
(x ,) = inputs
@@ -3753,7 +3753,7 @@ def L_op(self, inputs, outputs, gout):
3753
3753
else :
3754
3754
return [x .zeros_like ()]
3755
3755
3756
- return (gz / sqrt (sqr (x ) - np .array (1 , dtype = x .type )),)
3756
+ return (gz / sqrt (sqr (x ) - np .array (1 , dtype = x .dtype )),)
3757
3757
3758
3758
def c_code (self , node , name , inputs , outputs , sub ):
3759
3759
(x ,) = inputs
@@ -3830,7 +3830,7 @@ def L_op(self, inputs, outputs, gout):
3830
3830
else :
3831
3831
return [x .zeros_like ()]
3832
3832
3833
- return (gz / sqrt (sqr (x ) + np .array (1 , dtype = x .type )),)
3833
+ return (gz / sqrt (sqr (x ) + np .array (1 , dtype = x .dtype )),)
3834
3834
3835
3835
def c_code (self , node , name , inputs , outputs , sub ):
3836
3836
(x ,) = inputs
@@ -3908,7 +3908,7 @@ def L_op(self, inputs, outputs, gout):
3908
3908
else :
3909
3909
return [x .zeros_like ()]
3910
3910
3911
- return (gz / (np .array (1 , dtype = x .type ) - sqr (x )),)
3911
+ return (gz / (np .array (1 , dtype = x .dtype ) - sqr (x )),)
3912
3912
3913
3913
def c_code (self , node , name , inputs , outputs , sub ):
3914
3914
(x ,) = inputs
0 commit comments