!40372 bug fixes: op conv3dtranspose's grad lost attr 'pad_list'
Merge pull request !40372 from 陈宇/dev_master_fix_grad_conv
This commit is contained in:
commit
4ab930876a
|
@ -136,13 +136,14 @@ def get_bprop_conv3d_transpose(self):
|
|||
"""Grad definition for `Conv3DTranspose` operation."""
|
||||
stride = (self.stride[2], self.stride[3], self.stride[4])
|
||||
dilation = (self.dilation[2], self.dilation[3], self.dilation[4])
|
||||
pad_list = self.get_attr_dict()['pad_list']
|
||||
input_grad = nps.Conv3D(
|
||||
out_channel=self.in_channel, kernel_size=self.kernel_size, mode=self.mode, pad_mode="pad",
|
||||
pad=self.pad_list, stride=stride, dilation=dilation, group=self.group, data_format=self.data_format
|
||||
pad=pad_list, stride=stride, dilation=dilation, group=self.group, data_format=self.data_format
|
||||
)
|
||||
filter_grad = G.Conv3DBackpropFilter(
|
||||
out_channel=self.in_channel, kernel_size=self.kernel_size, mode=self.mode, pad_mode="pad",
|
||||
pad=self.pad_list, stride=self.stride, dilation=self.dilation, group=self.group, data_format=self.data_format
|
||||
pad=pad_list, stride=self.stride, dilation=self.dilation, group=self.group, data_format=self.data_format
|
||||
)
|
||||
|
||||
def bprop(x, w, out, dout):
|
||||
|
|
|
@ -1,23 +1,27 @@
|
|||
|
||||
0.1.1 MindSpore*1.8.0:Ó
|
||||
¢
|
||||
bprop.111:dout
|
||||
bprop.111:y
|
||||
bprop.111:keep_probbprop.111:[CNode]112:1bprop.111:[CNode]112:1"REF::S-Prim-DropoutDoMask:2:!Default/S-Prim-DropoutDoMask-op80
|
||||
—
|
||||
bprop.111:ybprop.111:[CNode]113:3bprop.111:[CNode]113:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:.Default/S-Prim-hyper_map[zeros_like_leaf]-op81
|
||||
Ÿ
|
||||
bprop.111:keep_probbprop.111:[CNode]114:5bprop.111:[CNode]114:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:.Default/S-Prim-hyper_map[zeros_like_leaf]-op82
|
||||
°
|
||||
bprop.111:[CNode]112:1
|
||||
bprop.111:[CNode]113:3
|
||||
bprop.111:[CNode]114:5bprop.111:[CNode]115:6bprop.111:[CNode]115:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op83 bprop.111*
|
||||
bprop.111:x*
|
||||
bprop.111:y*
|
||||
bprop.111:keep_prob*
|
||||
bprop.111:out*
|
||||
bprop.111:dout2
|
||||
bprop.111:[CNode]115:6:@3eda8d36c1fbca12abfba7bfef8256caec2a8b236144fdf3c3b4fed484586fcfPbH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]b.
|
||||
0.1.1 MindSpore*1.9.0:°
|
||||
›
|
||||
bprop.13:dout
|
||||
|
||||
bprop.13:y
|
||||
bprop.13:keep_probbprop.13:[CNode]14:1bprop.13:[CNode]14:1"REF::S-Prim-DropoutDoMask:2:!Default/S-Prim-DropoutDoMask-op10
|
||||
’
|
||||
|
||||
bprop.13:ybprop.13:[CNode]15:3bprop.13:[CNode]15:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:.Default/S-Prim-hyper_map[zeros_like_leaf]-op11
|
||||
š
|
||||
bprop.13:keep_probbprop.13:[CNode]16:5bprop.13:[CNode]16:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:.Default/S-Prim-hyper_map[zeros_like_leaf]-op12
|
||||
¦
|
||||
bprop.13:[CNode]14:1
|
||||
bprop.13:[CNode]15:3
|
||||
bprop.13:[CNode]16:5bprop.13:[CNode]17:6bprop.13:[CNode]17:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op13bprop.13*
|
||||
|
||||
bprop.13:x*
|
||||
|
||||
bprop.13:y*
|
||||
bprop.13:keep_prob*
|
||||
bprop.13:out*
|
||||
bprop.13:dout2
|
||||
bprop.13:[CNode]17:6:@7faca3fef81704f702bc2f83f8c62d96fac23f5ebc51bcaaa3034eaa79348058Pb.
|
||||
S-Prim-DropoutDoMask:2S-Prim-DropoutDoMaskb&
|
||||
S-Prim-MakeTuple:7S-Prim-MakeTupleh
|
||||
S-Prim-MakeTuple:7S-Prim-MakeTuplebH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]h
|
|
@ -1,16 +1,16 @@
|
|||
|
||||
0.1.1 MindSpore*1.8.0:ö
|
||||
–
|
||||
bprop.51:shapebprop.51:[CNode]52:1bprop.51:[CNode]52:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op35
|
||||
š
|
||||
bprop.51:keep_probbprop.51:[CNode]53:3bprop.51:[CNode]53:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op36
|
||||
0.1.1 MindSpore*1.9.0:Ú
|
||||
<EFBFBD>
|
||||
bprop.51:[CNode]52:1
|
||||
bprop.51:[CNode]53:3bprop.51:[CNode]54:4bprop.51:[CNode]54:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op37bprop.51*
|
||||
bprop.51:shape*
|
||||
bprop.51:keep_prob*
|
||||
bprop.51:out*
|
||||
bprop.51:dout2
|
||||
bprop.51:[CNode]54:4:@3eda8d36c1fbca12abfba7bfef8256caec2a8b236144fdf3c3b4fed484586fcfPb&
|
||||
bprop.3:shapebprop.3:[CNode]4:1bprop.3:[CNode]4:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op2
|
||||
”
|
||||
bprop.3:keep_probbprop.3:[CNode]5:3bprop.3:[CNode]5:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op3
|
||||
‡
|
||||
bprop.3:[CNode]4:1
|
||||
bprop.3:[CNode]5:3bprop.3:[CNode]6:4bprop.3:[CNode]6:4"REF::S-Prim-MakeTuple:5:Default/S-Prim-MakeTuple-op4bprop.3*
|
||||
bprop.3:shape*
|
||||
bprop.3:keep_prob*
|
||||
bprop.3:out*
|
||||
bprop.3:dout2
|
||||
bprop.3:[CNode]6:4:@7faca3fef81704f702bc2f83f8c62d96fac23f5ebc51bcaaa3034eaa79348058Pb&
|
||||
S-Prim-MakeTuple:5S-Prim-MakeTuplebH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]h
|
|
@ -1,24 +1,24 @@
|
|||
|
||||
0.1.1 MindSpore*1.8.0:‚
|
||||
˜
|
||||
bprop.55:indicesbprop.55:[CNode]56:1bprop.55:[CNode]56:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op38
|
||||
0.1.1 MindSpore*1.9.0:Ý
|
||||
’
|
||||
bprop.7:indicesbprop.7:[CNode]8:1bprop.7:[CNode]8:1"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op5
|
||||
<EFBFBD>
|
||||
bprop.7:depthbprop.7:[CNode]9:3bprop.7:[CNode]9:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op6
|
||||
•
|
||||
bprop.7:on_valuebprop.7:[CNode]10:4bprop.7:[CNode]10:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op7
|
||||
–
|
||||
bprop.55:depthbprop.55:[CNode]57:3bprop.55:[CNode]57:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op39
|
||||
™
|
||||
bprop.55:on_valuebprop.55:[CNode]58:4bprop.55:[CNode]58:4"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op40
|
||||
š
|
||||
bprop.55:off_valuebprop.55:[CNode]59:5bprop.55:[CNode]59:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:.Default/S-Prim-hyper_map[zeros_like_leaf]-op41
|
||||
¼
|
||||
bprop.55:[CNode]56:1
|
||||
bprop.55:[CNode]57:3
|
||||
bprop.55:[CNode]58:4
|
||||
bprop.55:[CNode]59:5bprop.55:[CNode]60:6bprop.55:[CNode]60:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op42bprop.55*
|
||||
bprop.55:indices*
|
||||
bprop.55:depth*
|
||||
bprop.55:on_value*
|
||||
bprop.55:off_value*
|
||||
bprop.55:out*
|
||||
bprop.55:dout2
|
||||
bprop.55:[CNode]60:6:@3eda8d36c1fbca12abfba7bfef8256caec2a8b236144fdf3c3b4fed484586fcfPbH
|
||||
bprop.7:off_valuebprop.7:[CNode]11:5bprop.7:[CNode]11:5"(REF::S-Prim-hyper_map[zeros_like_leaf]:2:-Default/S-Prim-hyper_map[zeros_like_leaf]-op8
|
||||
³
|
||||
bprop.7:[CNode]8:1
|
||||
bprop.7:[CNode]9:3
|
||||
bprop.7:[CNode]10:4
|
||||
bprop.7:[CNode]11:5bprop.7:[CNode]12:6bprop.7:[CNode]12:6"REF::S-Prim-MakeTuple:7:Default/S-Prim-MakeTuple-op9bprop.7*
|
||||
bprop.7:indices*
|
||||
bprop.7:depth*
|
||||
bprop.7:on_value*
|
||||
bprop.7:off_value*
|
||||
bprop.7:out*
|
||||
bprop.7:dout2
|
||||
bprop.7:[CNode]12:6:@7faca3fef81704f702bc2f83f8c62d96fac23f5ebc51bcaaa3034eaa79348058PbH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:2!S-Prim-hyper_map[zeros_like_leaf]b&
|
||||
S-Prim-MakeTuple:7S-Prim-MakeTupleh
|
Binary file not shown.
|
@ -1,5 +1,5 @@
|
|||
|
||||
0.1.1 MindSpore*1.8.0:ê
|
||||
0.1.1 MindSpore*1.9.0:ê
|
||||
l
|
||||
bprop.1:dout
|
||||
bprop.1:outbprop.1:dx:1bprop.1:dx:1"REF::S-Prim-ReluGrad:2:Default/S-Prim-ReluGrad-op0
|
||||
|
@ -8,7 +8,7 @@ m
|
|||
bprop.1:x*
|
||||
bprop.1:out*
|
||||
bprop.1:dout2
|
||||
bprop.1:[CNode]2:3:@3eda8d36c1fbca12abfba7bfef8256caec2a8b236144fdf3c3b4fed484586fcfPb&
|
||||
bprop.1:[CNode]2:3:@7faca3fef81704f702bc2f83f8c62d96fac23f5ebc51bcaaa3034eaa79348058Pb&
|
||||
S-Prim-MakeTuple:4S-Prim-MakeTuplebr
|
||||
S-Prim-ReluGrad:2S-Prim-ReluGrad
|
||||
output_names€ŠZoutput€+
|
||||
|
|
|
@ -1,21 +1,24 @@
|
|||
|
||||
0.1.1 MindSpore*1.8.0:Ù
|
||||
z
|
||||
bprop.150:dout
|
||||
bprop.150:ybprop.150:dgrad:1bprop.150:dgrad:1"REF::S-Prim-ReluGrad:2:Default/S-Prim-ReluGrad-op107
|
||||
˜
|
||||
bprop.150:ybprop.150:[CNode]151:3bprop.150:[CNode]151:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:/Default/S-Prim-hyper_map[zeros_like_leaf]-op108
|
||||
”
|
||||
bprop.150:dgrad:1
|
||||
bprop.150:[CNode]151:3bprop.150:[CNode]152:5bprop.150:[CNode]152:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op109 bprop.150*
|
||||
bprop.150:grad*
|
||||
bprop.150:y*
|
||||
bprop.150:out*
|
||||
bprop.150:dout2
|
||||
bprop.150:[CNode]152:5:@3eda8d36c1fbca12abfba7bfef8256caec2a8b236144fdf3c3b4fed484586fcfPb&
|
||||
S-Prim-MakeTuple:6S-Prim-MakeTuplebH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]br
|
||||
0.1.1 MindSpore*1.9.0:¿
|
||||
u
|
||||
bprop.18:dout
|
||||
|
||||
bprop.18:ybprop.18:dgrad:1bprop.18:dgrad:1"REF::S-Prim-ReluGrad:2:Default/S-Prim-ReluGrad-op14
|
||||
’
|
||||
|
||||
bprop.18:ybprop.18:[CNode]19:3bprop.18:[CNode]19:3"(REF::S-Prim-hyper_map[zeros_like_leaf]:4:.Default/S-Prim-hyper_map[zeros_like_leaf]-op15
|
||||
Œ
|
||||
bprop.18:dgrad:1
|
||||
bprop.18:[CNode]19:3bprop.18:[CNode]20:5bprop.18:[CNode]20:5"REF::S-Prim-MakeTuple:6:Default/S-Prim-MakeTuple-op16bprop.18*
|
||||
bprop.18:grad*
|
||||
|
||||
bprop.18:y*
|
||||
bprop.18:out*
|
||||
bprop.18:dout2
|
||||
bprop.18:[CNode]20:5:@7faca3fef81704f702bc2f83f8c62d96fac23f5ebc51bcaaa3034eaa79348058Pb&
|
||||
S-Prim-MakeTuple:6S-Prim-MakeTuplebr
|
||||
S-Prim-ReluGrad:2S-Prim-ReluGrad
|
||||
output_names€ŠZoutput€+
|
||||
input_names€ŠZ
|
||||
y_backprop€ŠZx€h
|
||||
y_backprop€ŠZx€bH
|
||||
#S-Prim-hyper_map[zeros_like_leaf]:4!S-Prim-hyper_map[zeros_like_leaf]h
|
Loading…
Reference in New Issue