We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8124b97 commit 43760f5Copy full SHA for 43760f5
pyadjoint/control.py
@@ -52,7 +52,7 @@ def get_derivative(self, options={}):
52
return self.control._ad_convert_type(self.block_variable.adj_value, options=options)
53
54
def get_hessian(self, options={}):
55
- if self.block_variable.adj_value is None:
+ if self.block_variable.hessian_value is None:
56
logging.warning("Hessian value is None, is the functional independent of the control variable?")
57
return self.control._ad_convert_type(0., options=options)
58
return self.control._ad_convert_type(self.block_variable.hessian_value, options=options)
0 commit comments