You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use dfdx::prelude::*;constIN_CHAN:usize = 1;constOUT_CHAN:usize = 1;constKERNEL_SIZE:usize = 3;constSTRIDE:usize = 2;// for padding='same'constPADDING:usize = ((KERNEL_SIZE - 1)*DILATION + 1) / 2;// = 1constDILATION:usize = 1;constGROUPS:usize = 1;typeModel = ConvTrans2DConstConfig<IN_CHAN,OUT_CHAN,KERNEL_SIZE,STRIDE,PADDING,DILATION,GROUPS,>;fnexample(){let dev = Cpu::default();let model = dev.build_module::<f32>(Model::default());let x:Tensor<Rank4<1,1,2,3>,_,_> = dev.zeros();let _prediction:Tensor<Rank4<1,1,3,5>,_,_> = model.forward(x);// note: the shape is the same for `ya` from the tf example.}
The text was updated successfully, but these errors were encountered:
This issue is a request to add
OUTPUT_PADDING
toConv2DTranspose
.It appears that dfdx
ConvTrans2D
behaves as if tensorflowConv2DTranspose
hasoutput_padding=0
.Related code for dfdx and tf.
Code example for tf:
Code example for dfdx:
The text was updated successfully, but these errors were encountered: