File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -911,8 +911,7 @@ def initialize(self):
911
911
inp = self .get_input_variable ()
912
912
# no data_format attribute for Cropping1D
913
913
shape = [self .attributes ['out_width' ], self .attributes ['n_chan' ]]
914
- dims = [f'OUT_WIDTH_{ self .index } ' , f'N_CHAN_{ self .index } ' ]
915
- self .add_output_variable (shape , dims , precision = inp .type .precision )
914
+ self .add_output_variable (shape , precision = inp .type .precision )
916
915
917
916
918
917
class Cropping2D (Layer ):
@@ -932,11 +931,9 @@ def initialize(self):
932
931
inp = self .get_input_variable ()
933
932
if self .get_attr ('data_format' ) == 'channels_last' :
934
933
shape = [self .attributes ['out_height' ], self .attributes ['out_width' ], self .attributes ['n_chan' ]]
935
- dims = [f'OUT_HEIGHT_{ self .index } ' , f'OUT_WIDTH_{ self .index } ' , f'N_CHAN_{ self .index } ' ]
936
934
else :
937
935
shape = [self .attributes ['n_chan' ], self .attributes ['out_height' ], self .attributes ['out_width' ]]
938
- dims = [f'N_CHAN_{ self .index } ' , f'OUT_HEIGHT_{ self .index } ' , f'OUT_WIDTH_{ self .index } ' ]
939
- self .add_output_variable (shape , dims , precision = inp .type .precision )
936
+ self .add_output_variable (shape , precision = inp .type .precision )
940
937
941
938
942
939
class Activation (Layer ):
You can’t perform that action at this time.
0 commit comments