We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f817057 commit b8d2a38Copy full SHA for b8d2a38
src/layer/vulkan/convolution_vulkan.cpp
@@ -57,8 +57,12 @@ int Convolution_vulkan::load_param(const ParamDict& pd)
57
58
int Convolution_vulkan::create_pipeline(const Option& opt)
59
{
60
- const Mat& shape = bottom_shapes.empty() ? Mat() : bottom_shapes[0];
61
- const Mat& out_shape = top_shapes.empty() ? Mat() : top_shapes[0];
+ Mat shape = bottom_shapes.empty() ? Mat() : bottom_shapes[0];
+ 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();
66
67
const int maxk = kernel_w * kernel_h;
68
int num_input = weight_data_size / maxk / num_output;
0 commit comments