class_docstr: Limited-memory BFGS (L-BFGS) optimizer.
  
  Performs unconstrained optimization via L-BFGS.
  
  Args:
      max_opt_itr (int): Maximum iteration for update.
      callback (callable): Function to call during optimization.
class_docstr_tok: ["Limited-memory","BFGS","(","L-BFGS",")","optimizer",".","Performs","unconstrained","optimization","via","L-BFGS",".","Args",":","max_opt_itr","(","int",")",":","Maximum","iteration","for","update",".","callback","(","callable",")",":","Function","to","call","during","optimization","."]
docstr: The loss.
  
  Args:
      inputs (list[numpy.ndarray]): List of input values.
      extra_inputs (list[numpy.ndarray]): List of extra input values.
  
  Returns:
      float: Loss.
  
  Raises:
      Exception: If loss function is None, i.e. not defined.
docstr_tok: ["The","loss",".","Args",":","inputs","(","list","[","numpy.ndarray","]",")",":","List","of","input","values",".","extra_inputs","(","list","[","numpy.ndarray","]",")",":","List","of","extra","input","values",".","Returns",":","float",":","Loss",".","Raises",":","Exception",":","If","loss","function","is","None",",","i.e",".","not","defined","."]
code: def loss(self, inputs, extra_inputs=None):
      """The loss.
  
      Args:
          inputs (list[numpy.ndarray]): List of input values.
          extra_inputs (list[numpy.ndarray]): List of extra input values.
  
      Returns:
          float: Loss.
  
      Raises:
          Exception: If loss function is None, i.e. not defined.
  
      """
      if self._opt_fun is None:
          raise Exception(
              "Use update_opt() to setup the loss function first."
          )
      if extra_inputs is None:
          extra_inputs = list()
      return self._opt_fun["f_loss"](
          *(list(inputs) + list(extra_inputs))
      )
  
file_path: garage/src/garage/tf/optimizers/lbfgs_optimizer.py
imports: import time
  import scipy.optimize
  import tensorflow
  from garage.tf import compile_function, flatten_tensor_variables
  from garage.tf.optimizers._dtypes import LazyDict
label_desc: Use image node_id 3 for calling the LBFGSOptimizer obj's underlying member method code with example usage: obj.loss(inputs, extra_inputs) and returns: self