您当前的位置: 首页 >  ar

段智华

暂无认证

  • 0浏览

    0关注

    1232博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

cs231 pytorch ignite 框架高级API应用案例mnist_with_tensorboardx

段智华 发布时间:2018-12-05 21:45:30 ,浏览量:0

 

cs231  pytorch ignite 框架高级API应用案例mnist_with_tensorboardx

mnist_with_tensorboardx.py

"""
 MNIST example with training and validation monitoring using TensorboardX and Tensorboard.
 Requirements:
    TensorboardX (https://github.com/lanpa/tensorboard-pytorch): `pip install tensorboardX`
    Tensorboard: `pip install tensorflow` (or just install tensorboard without the rest of tensorflow)
 Usage:
    Start tensorboard:
    ```bash
    tensorboard --logdir=/tmp/tensorboard_logs/
    ```
    Run the example:
    ```bash
    python mnist_with_tensorboardx.py --log_dir=/tmp/tensorboard_logs
    ```
"""

from __future__ import print_function
from argparse import ArgumentParser
import torch
from torch.utils.data import DataLoader
from torch import nn
import torch.nn.functional as F
from torch.optim import SGD
from torchvision.datasets import MNIST
from
关注
打赏
1659361485
查看更多评论
立即登录/注册

微信扫码登录

0.1131s