def get_optimization_gradients(self):
grad_array = self.fields.get("<STR_LIT>")<EOL>if grad_array is None:<EOL><INDENT>return []<EOL><DEDENT>else:<EOL><INDENT>return np.reshape(grad_array, (-<NUM_LIT:1>, len(self.molecule.numbers), <NUM_LIT:3>))<EOL><DEDENT>
Return the energy gradients of all geometries during an optimization