mirror of
https://github.com/wassname/pytorch-lightning.git
synced 2026-09-09 11:32:07 +08:00
Deployed 14dff83 with MkDocs version: 1.0.4
This commit is contained in:
@@ -275,6 +275,13 @@
|
||||
<label class="md-nav__title" for="__toc">Table of contents</label>
|
||||
<ul class="md-nav__list" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#minimal-example" title="Minimal example" class="md-nav__link">
|
||||
Minimal example
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#training_step" title="training_step" class="md-nav__link">
|
||||
training_step
|
||||
@@ -684,6 +691,13 @@
|
||||
<label class="md-nav__title" for="__toc">Table of contents</label>
|
||||
<ul class="md-nav__list" data-md-scrollfix>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#minimal-example" title="Minimal example" class="md-nav__link">
|
||||
Minimal example
|
||||
</a>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="md-nav__item">
|
||||
<a href="#training_step" title="training_step" class="md-nav__link">
|
||||
training_step
|
||||
@@ -887,7 +901,7 @@
|
||||
<h1 id="lightning-module-interface">Lightning Module interface</h1>
|
||||
<p>[<a href="https://github.com/williamFalcon/pytorch-lightning/blob/master/pytorch_lightning/root_module/root_module.py">Github Code</a>]</p>
|
||||
<p>A lightning module is a strict superclass of nn.Module, it provides a standard interface for the trainer to interact with the model.</p>
|
||||
<p>The easiest thing to do is copy <a href="https://williamfalcon.github.io/pytorch-lightning/LightningModule/RequiredTrainerInterface/#minimal-example">this minimal example</a> and modify accordingly. </p>
|
||||
<p>The easiest thing to do is copy the <a href="https://williamfalcon.github.io/pytorch-lightning/LightningModule/RequiredTrainerInterface/#minimal-example">minimal example</a> below and modify accordingly. </p>
|
||||
<p>Otherwise, to Define a Lightning Module, implement the following methods:</p>
|
||||
<p><strong>Required</strong>: </p>
|
||||
<ul>
|
||||
@@ -913,7 +927,7 @@
|
||||
<li><a href="./#add_model_specific_args">add_model_specific_args</a></li>
|
||||
</ul>
|
||||
<hr />
|
||||
<p><strong>Minimal example</strong></p>
|
||||
<h3 id="minimal-example">Minimal example</h3>
|
||||
<pre><code class="python">import os
|
||||
import torch
|
||||
from torch.nn import functional as F
|
||||
|
||||
Reference in New Issue
Block a user