Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
MindSpore
mindinsight
提交
1f028936
M
mindinsight
项目概览
MindSpore
/
mindinsight
通知
8
Star
4
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
M
mindinsight
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
1f028936
编写于
6月 12, 2020
作者:
Q
quyongxiu1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add warn info for op not converted
上级
13841a69
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
64 addition
and
1 deletion
+64
-1
mindinsight/mindconverter/config.py
mindinsight/mindconverter/config.py
+64
-1
未找到文件。
mindinsight/mindconverter/config.py
浏览文件 @
1f028936
...
...
@@ -391,8 +391,71 @@ ALL_UNSUPPORTED = NN_UNSUPPORTED + F_UNSUPPORTED + TORCH_DOT_UNSUPPORTED + TENSO
UNSUPPORTED_WARN_INFOS
=
{
"nn.AdaptiveAvgPool2d"
:
"maybe could convert to P.ReduceMean"
,
"nn.AvgPool1d"
:
"maybe could convert to nn.AvgPool1d"
,
"nn.ConvTranspose2d"
:
"maybe could convert to nn.Conv2dTranspose"
,
"nn.CrossEntropyLoss"
:
"maybe could convert to nn.SoftmaxCrossEntropyWithLogits"
,
"nn.Embedding"
:
"maybe could convert to nn.Embedding"
,
"nn.GroupNorm"
:
"maybe could convert to nn.GroupNorm"
,
"nn.MSELoss"
:
"maybe could convert to nn.MSELoss"
,
"nn.LSTM"
:
"maybe could convert to nn.LSTM"
,
"nn.LSTMCell"
:
"maybe could convert to nn.LSTMCell"
,
"nn.ModuleList"
:
"maybe could convert to nn.CellList"
,
"nn.SmoothL1Loss"
:
"maybe could convert to nn.SmoothL1Loss"
,
"nn.Tanh"
:
"maybe could convert to nn.Tanh"
,
"nn.Upsample"
:
"maybe could convert to P.ResizeBilinear"
,
"nn.L1Loss"
:
"maybe could convert to nn.L1Loss"
,
"nn.Parameter"
:
"maybe could convert to mindspore.Parameter"
,
"nn.ParameterList"
:
"maybe could convert to mindspore.ParameterTuple"
,
"nn.Unfold"
:
"maybe could convert to nn.Unfold"
,
"nn.PixelShuffle"
:
"maybe could convert to P.DepthToSpace"
,
"F.adaptive_avg_pool2d"
:
"maybe could convert to P.ReduceMean"
,
"F.conv2d"
:
"maybe could convert to mindspore.ops.operations.Conv2D"
,
"F.dropout"
:
"please use nn.Dropout in __init__()"
,
"F.interpolate"
:
"maybe could convert to P.ResizeBilinear"
,
"torch.bmm"
:
"maybe could convert to P.BatchMatMul"
,
"torch.cumsum"
:
"maybe could convert to P.CumSum"
,
"F.relu"
:
"maybe could convert to P.ReLU"
,
"F.pad"
:
"maybe could convert to P.Pad"
,
"F.softmax"
:
"maybe could convert to P.Softmax"
,
"torch.clamp"
:
"maybe could convert to mindspore.ops.composite.clip_by_value"
,
"torch.eq"
:
"maybe could convert to P.Equal"
,
"torch.load"
:
"maybe could convert to mindspore.train.serialization.load_checkpoint"
,
"torch.matmul"
:
"maybe could convert to P.MatMul"
,
"torch.max"
:
"try to use P.ArgMaxWithValue, notice that two values are returned by P.ArgMaxWithValue"
,
"torch.min"
:
"try to use P.ArgMinWithValue, notice that two values are returned by P.ArgMinWithValue"
"torch.mean"
:
"maybe could convert to P.ReduceMean"
,
"torch.min"
:
"try to use P.ArgMinWithValue, notice that two values are returned by P.ArgMinWithValue"
,
"torch.mm"
:
"maybe could convert to P.MatMul"
,
"torch.mul"
:
"maybe could convert to P.Mul"
,
"torch.norm"
:
"maybe could convert to nn.Norm"
,
"torch.numel"
:
"maybe could convert to P.Size"
,
"F.one_hot"
:
"maybe could convert to P.OneHot"
,
"torch.ones_like"
:
"maybe could convert to P.OnesLike"
,
"torch.randn"
:
"maybe could convert to P.TruncatedNormal"
,
"torch.round"
:
"maybe could convert to P.Round"
,
"torch.save"
:
"maybe could convert to mindspore.train.serialization.save_checkpoint"
,
"torch.sigmoid"
:
"maybe could convert to P.Sigmoid"
,
"torch.split"
:
"maybe could convert to P.Split"
,
"torch.squeeze"
:
"maybe could convert to P.Squeeze"
,
"torch.stack"
:
"maybe could convert to P.Pack"
,
"torch.sum"
:
"maybe could convert to mindspore.ops.operations.ReduceSum"
,
"torch.tanh"
:
"maybe could convert to mindspore.ops.operations.Tanh"
,
"torch.tensor"
:
"maybe could convert to mindspore.Tensor"
,
"torch.transpose"
:
"maybe could convert to P.Transpose"
,
"torch.unsqueeze"
:
"maybe could convert to P.ExpandDims"
,
"torch.zeros_like"
:
"maybe could convert to P.ZerosLike"
,
".chunk"
:
"maybe could convert to P.Split"
,
".fill_"
:
"maybe could convert to P.Fill"
,
".float"
:
"maybe could convert to P.Cast"
,
".mm"
:
"maybe could convert to P.MatMul"
,
"mul"
:
"maybe could convert to P.Mul"
,
".pow"
:
"maybe could convert to P.Pow"
,
".round"
:
"maybe could convert to P.Round"
,
".scatter"
:
"maybe could convert to P.ScatterNd"
,
"sigmoid"
:
"maybe could convert to nn.Sigmoid"
,
".sign"
:
"maybe could convert to P.Sign"
,
".sqrt"
:
"maybe could convert to P.Sqrt"
,
".sub"
:
"maybe could convert to P.Sub"
,
".transpose"
:
"maybe could convert to P.Transpose"
,
".unsqueeze"
:
"maybe could convert to P.ExpandDims"
,
".zero_"
:
"maybe could convert to P.ZerosLike"
,
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录