Skip to content

Commit b8d2a38

Browse files
committed
f
1 parent f817057 commit b8d2a38

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/layer/vulkan/convolution_vulkan.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ int Convolution_vulkan::load_param(const ParamDict& pd)
5757

5858
int Convolution_vulkan::create_pipeline(const Option& opt)
5959
{
60-
const Mat& shape = bottom_shapes.empty() ? Mat() : bottom_shapes[0];
61-
const Mat& out_shape = top_shapes.empty() ? Mat() : top_shapes[0];
60+
Mat shape = bottom_shapes.empty() ? Mat() : bottom_shapes[0];
61+
Mat out_shape = top_shapes.empty() ? Mat() : top_shapes[0];
62+
63+
// skip fc like hint
64+
if (shape.dims != 3) shape = Mat();
65+
if (out_shape.dims != 3) out_shape = Mat();
6266

6367
const int maxk = kernel_w * kernel_h;
6468
int num_input = weight_data_size / maxk / num_output;

0 commit comments

Comments
 (0)