def _truncated_bptt_steps(self) -> int:
    lightning_module = self.trainer.lightning_module
    if (lightning_module.truncated_bptt_steps > 0):
        return lightning_module.truncated_bptt_steps
    return (self.trainer.truncated_bptt_steps or 0)
def _truncated_bptt_steps(self) -> int:
    lightning_module = self.trainer.lightning_module
    if (lightning_module.truncated_bptt_steps > 0):
        return lightning_module.truncated_bptt_steps
    return (self.trainer.truncated_bptt_steps or 0)