File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -241,9 +241,7 @@ function OperatorEnum(;
241
241
if gradient_exists
242
242
push! (diff_binary_operators, diff_op)
243
243
else
244
- if verbosity > 0
245
- @warn " Automatic differentiation has been turned off, since operator $(op) does not have well-defined gradients."
246
- end
244
+ @warn " Automatic differentiation has been turned off, since operator $(op) does not have well-defined gradients."
247
245
enable_autodiff = false
248
246
break
249
247
end
@@ -256,9 +254,7 @@ function OperatorEnum(;
256
254
if gradient_exists
257
255
push! (diff_unary_operators, diff_op)
258
256
else
259
- if verbosity > 0
260
- @warn " Automatic differentiation has been turned off, since operator $(op) does not have well-defined gradients."
261
- end
257
+ @warn " Automatic differentiation has been turned off, since operator $(op) does not have well-defined gradients."
262
258
enable_autodiff = false
263
259
break
264
260
end
You can’t perform that action at this time.
0 commit comments