Skip to content

Commit

Permalink
reqst
Browse files Browse the repository at this point in the history
  • Loading branch information
dingguanglei committed Oct 25, 2018
1 parent 954c119 commit 0deb67d
Show file tree
Hide file tree
Showing 6 changed files with 22 additions and 16 deletions.
11 changes: 6 additions & 5 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,12 @@
# add these directories to sys.path here. If the directory is relative to the
# documentation root, use os.path.abspath to make it absolute, like shown here.
#
# import os
# import sys
# sys.path.insert(0, os.path.abspath('../../'))
# import jdit
import os
import sys
sys.path.insert(0, os.path.abspath('../../'))
import jdit

# -- Project information -----------------------------------------------------

project = 'jdit'
copyright = '2018, dingguanglei'
author = 'dingguanglei'
Expand Down Expand Up @@ -80,8 +79,10 @@
# The theme to use for HTML and HTML Help pages. See the documentation for
# a list of builtin themes.
#sphinx_rtd_theme,alabaster
import sphinx_rtd_theme
html_theme = 'sphinx_rtd_theme'

html_theme_path = [sphinx_rtd_theme.get_html_theme_path()]
# Theme options are theme-specific and customize the look and feel of a theme
# further. For a list of options available for each theme, see the
# documentation.
Expand Down
6 changes: 3 additions & 3 deletions docs/source/metric.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,14 @@
:class: hidden-section

jdit.Metric
==========
===========

.. automodule:: jdit.metric
.. currentmodule:: jdit.metric

Metric
-----
------

.. autoclass:: metric
.. autoclass:: Metric
:members:

4 changes: 2 additions & 2 deletions docs/source/trainer.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ jdit.trainer
.. currentmodule:: jdit.trainer

SupTrainer
-----
----------

.. autoclass:: SupTrainer
:members:

GanTrainer
-----
----------

.. autoclass:: GanTrainer
:members:
Expand Down
8 changes: 4 additions & 4 deletions jdit/model.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# coding=utf-8
import torch, os
from torch.nn import init, Conv2d, Linear, ConvTranspose2d, InstanceNorm2d, BatchNorm2d, DataParallel
from torch import save, load

# import torch, os
# from torch.nn import init, Conv2d, Linear, ConvTranspose2d, InstanceNorm2d, BatchNorm2d, DataParallel
# from torch import save, load
from .pkg import *
class Model(object):
"""a model
Expand Down
4 changes: 2 additions & 2 deletions jdit/optimizer.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# coding=utf-8

from torch.optim import Adam, RMSprop

# from torch.optim import Adam, RMSprop
from .pkg import *

class Optimizer(object):
"""This is a wrapper of `optimizer` class in pytorch.
Expand Down
5 changes: 5 additions & 0 deletions jdit/pkg.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
from torch.optim import Adam, RMSprop

import torch, os
from torch.nn import init, Conv2d, Linear, ConvTranspose2d, InstanceNorm2d, BatchNorm2d, DataParallel
from torch import save, load

0 comments on commit 0deb67d

Please sign in to comment.