This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
Register
Sign In
hummingbird
/
fastNLP
Not watched
Unwatch
Watch all
Watch but not notify
2
Star
0
Fork
0
Code
Releases
13
Wiki
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
Browse Source
修改api.load()函数
tags/v0.2.0
yh_cc
6 years ago
parent
dff4cdf6a7
commit
ae0cc9a46b
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
fastNLP/api/api.py
+ 2
- 2
fastNLP/api/api.py
View File
@@ -1,5 +1,5 @@
import
_pickle
import
torch
class API:
@@ -11,6 +11,6 @@ class API:
pass
def load(self, name):
_dict =
_pickle
.load(name)
_dict =
torch
.load(name)
self.pipeline = _dict['pipeline']
self.model = _dict['model']
Write
Preview
Loading…
Cancel
Save