modify textrcnn readme

This commit is contained in:
陈劢 2021-03-01 10:08:08 +08:00
parent c33d767314
commit 4129b93a1e
1 changed files with 2 additions and 8 deletions

View File

@ -40,7 +40,7 @@ Dataset used: [Sentence polarity dataset v1.0](http://www.cs.cornell.edu/people/
## [Quick Start](#contents)
- Preparing enviroment
- Preparing environment
```python
# download the pretrained GoogleNews-vectors-negative300.bin, put it into /tmp
@ -59,13 +59,7 @@ Dataset used: [Sentence polarity dataset v1.0](http://www.cs.cornell.edu/people/
```
- Modify the source code in ```mindspore/train/model.py```, line 173, add "O3".
```python
self._eval_network = nn.WithEvalCell(self._network, self._loss_fn, self._amp_level in ["O2", "O3"])
```
- Runing on Ascend
- Running on Ascend
```python
# run training