Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
magicwindyyd
mindspore
提交
3853bebb
M
mindspore
项目概览
magicwindyyd
/
mindspore
与 Fork 源项目一致
Fork自
MindSpore / mindspore
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindspore
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
3853bebb
编写于
6月 01, 2020
作者:
M
mindspore-ci-bot
提交者:
Gitee
6月 01, 2020
浏览文件
操作
浏览文件
下载
差异文件
!1747 fix pylint warnings
Merge pull request !1747 from SJN/master
上级
0e64eff5
42d856ca
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
3 deletion
+5
-3
example/lstm_aclImdb/imdb.py
example/lstm_aclImdb/imdb.py
+1
-1
example/resnet50_imagenet2012_THOR/model/thor_layer.py
example/resnet50_imagenet2012_THOR/model/thor_layer.py
+2
-1
example/resnet50_imagenet2012_THOR/train.py
example/resnet50_imagenet2012_THOR/train.py
+2
-1
未找到文件。
example/lstm_aclImdb/imdb.py
浏览文件 @
3853bebb
...
@@ -18,8 +18,8 @@ imdb dataset parser.
...
@@ -18,8 +18,8 @@ imdb dataset parser.
import
os
import
os
from
itertools
import
chain
from
itertools
import
chain
import
gensim
import
numpy
as
np
import
numpy
as
np
import
gensim
class
ImdbParser
():
class
ImdbParser
():
...
...
example/resnet50_imagenet2012_THOR/model/thor_layer.py
浏览文件 @
3853bebb
...
@@ -13,6 +13,8 @@
...
@@ -13,6 +13,8 @@
# limitations under the License.
# limitations under the License.
# ============================================================================
# ============================================================================
"""thor_layer"""
"""thor_layer"""
import
numpy
as
np
import
mindspore
as
ms
import
mindspore
as
ms
import
mindspore.common.dtype
as
mstype
import
mindspore.common.dtype
as
mstype
from
mindspore._checkparam
import
check_bool
,
twice
,
check_int_positive
from
mindspore._checkparam
import
check_bool
,
twice
,
check_int_positive
...
@@ -23,7 +25,6 @@ from mindspore.common.tensor import Tensor
...
@@ -23,7 +25,6 @@ from mindspore.common.tensor import Tensor
from
mindspore.nn.cell
import
Cell
from
mindspore.nn.cell
import
Cell
from
mindspore.nn.layer.activation
import
get_activation
from
mindspore.nn.layer.activation
import
get_activation
from
mindspore.ops
import
operations
as
P
from
mindspore.ops
import
operations
as
P
import
numpy
as
np
C0
=
16
C0
=
16
def
caculate_device_shape
(
matrix_dim
,
channel
,
is_A
):
def
caculate_device_shape
(
matrix_dim
,
channel
,
is_A
):
...
...
example/resnet50_imagenet2012_THOR/train.py
浏览文件 @
3853bebb
...
@@ -17,6 +17,8 @@ import argparse
...
@@ -17,6 +17,8 @@ import argparse
import
os
import
os
import
random
import
random
import
numpy
as
np
from
mindspore
import
Tensor
from
mindspore
import
Tensor
from
mindspore
import
context
from
mindspore
import
context
from
mindspore.communication.management
import
init
from
mindspore.communication.management
import
init
...
@@ -28,7 +30,6 @@ from model.model_thor import Model
...
@@ -28,7 +30,6 @@ from model.model_thor import Model
from
model.resnet
import
resnet50
from
model.resnet
import
resnet50
from
model.thor
import
THOR
from
model.thor
import
THOR
import
numpy
as
np
from
config
import
config
from
config
import
config
from
crossentropy
import
CrossEntropy
from
crossentropy
import
CrossEntropy
from
dataset_imagenet
import
create_dataset
from
dataset_imagenet
import
create_dataset
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录