提交 79b8060e 编写于 作者: S shippingwang

Remove v2

上级 0d602dbb
#!/bin/env python
import paddle.v2.dataset as dataset
import paddle.dataset as dataset
import nltk
#cifar
......
......@@ -317,7 +317,7 @@ def event_handler(event):
```python
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -320,7 +320,7 @@ def event_handler(event):
![png](./image/train_and_test.png)
```python
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -359,7 +359,7 @@ def event_handler(event):
```python
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -362,7 +362,7 @@ def event_handler(event):
![png](./image/train_and_test.png)
```python
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -385,7 +385,7 @@ test_reader = paddle.batch(
```python
params_dirname = "image_classification_resnet.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -383,7 +383,7 @@ Callback function `event_handler` will be called during training when a pre-defi
```python
params_dirname = "image_classification_resnet.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -427,7 +427,7 @@ test_reader = paddle.batch(
```python
params_dirname = "image_classification_resnet.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -425,7 +425,7 @@ Callback function `event_handler` will be called during training when a pre-defi
```python
params_dirname = "image_classification_resnet.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
train_title = "Train cost"
test_title = "Test cost"
......
......@@ -431,7 +431,7 @@ feed_order = [
# Specify the directory path to save the parameters
params_dirname = "recommender_system.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
test_title = "Test cost"
plot_cost = Ploter(test_title)
......
......@@ -406,7 +406,7 @@ For example, we can check the cost by `trainer.test` when `EndStepEvent` occurs
# Specify the directory path to save the parameters
params_dirname = "recommender_system.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
test_title = "Test cost"
plot_cost = Ploter(test_title)
......
......@@ -473,7 +473,7 @@ feed_order = [
# Specify the directory path to save the parameters
params_dirname = "recommender_system.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
test_title = "Test cost"
plot_cost = Ploter(test_title)
......
......@@ -448,7 +448,7 @@ For example, we can check the cost by `trainer.test` when `EndStepEvent` occurs
# Specify the directory path to save the parameters
params_dirname = "recommender_system.inference.model"
from paddle.v2.plot import Ploter
from paddle.utils import Ploter
test_title = "Test cost"
plot_cost = Ploter(test_title)
......
import os
import traceback
import paddle.v2 as paddle
import paddle as paddle
from flask import Flask, jsonify, request
from flask_cors import CORS
from Queue import Queue
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册