resolve cast from type properly, no more fp16p to/from fp16s conversion

This commit is contained in:
nihuini
2020-06-02 19:54:54 +08:00
parent bb56b5439f
commit f87f21779f
2 changed files with 102 additions and 10 deletions
+2 -2
View File
@@ -230,7 +230,7 @@ void VkCompute::record_download(const VkMat& src, Mat& dst, const Option& opt)
// gpu cast to fp32 on the fly (integrated gpu)
Option opt_staging = opt;
if (vkdev->info.type == 1)
if (vkdev->info.type != 0)
{
opt_staging.use_fp16_packed = false;
opt_staging.use_fp16_storage = false;
@@ -358,7 +358,7 @@ void VkCompute::record_download(const VkImageMat& src, Mat& dst, const Option& o
// gpu cast to fp32 on the fly (integrated gpu)
Option opt_staging = opt;
if (vkdev->info.type == 1)
if (vkdev->info.type != 0)
{
opt_staging.use_fp16_packed = false;
opt_staging.use_fp16_storage = false;