xnn.common.models.vibrations.exact_curvature#
- xnn.common.models.vibrations.exact_curvature(model)[source]#
Switch on, within the block, what a model’s exact second derivatives need.
Every submodule with a
position_responseattribute (the NDDO methods ofxnn.sqmnn, whose SCF density must then follow the positions) has it set toTrue; the previous values return on exit.- Parameters:
model (torch.nn.Module) – The model.
- Yields:
torch.nn.Module – The same model.
- Return type: