Skip to content

Commit

Permalink
skip gemm vulkan int8
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Oct 9, 2024
1 parent 24d2c15 commit 20a221f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/layer/vulkan/gemm_vulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,19 @@ Gemm_vulkan::Gemm_vulkan()
pipeline_gemm = 0;
}

int Gemm_vulkan::load_param(const ParamDict& pd)
{
int ret = Gemm::load_param(pd);

if (int8_scale_term)
{
support_vulkan = false;
support_image_storage = false;
}

return ret;
}

int Gemm_vulkan::create_pipeline(const Option& opt)
{
// const Mat& shape = top_shapes.empty() ? Mat() : top_shapes[0];
Expand Down
2 changes: 2 additions & 0 deletions src/layer/vulkan/gemm_vulkan.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ class Gemm_vulkan : public Gemm
public:
Gemm_vulkan();

virtual int load_param(const ParamDict& pd);

virtual int create_pipeline(const Option& opt);
virtual int destroy_pipeline(const Option& opt);

Expand Down

0 comments on commit 20a221f

Please sign in to comment.