File tree Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Expand file tree Collapse file tree 3 files changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -478,13 +478,6 @@ vTensor::vTensor(
478478 if (storage_type != utils::kBuffer ) {
479479 set_logical_limits (storage_.image_extents_ );
480480 }
481-
482- if (dtype == vkapi::kHalf ) {
483- VK_CHECK_COND (
484- api::context ()->adapter_ptr ()->supports_16bit_storage_buffers (),
485- " Half dtype is only available if the physical device supports float16 "
486- " storage buffers!" );
487- }
488481}
489482
490483// NOLINTNEXTLINE
Original file line number Diff line number Diff line change @@ -68,6 +68,8 @@ api::StagingBuffer PrepackNode::create_staging_buffer(ComputeGraph* graph) {
6868void PrepackNode::encode (ComputeGraph* graph) {
6969 api::Context* const context = graph->context ();
7070
71+ context->check_device_capabilities (shader_);
72+
7173 vTensorPtr packed = graph->get_tensor (packed_);
7274 api::StagingBuffer staging = create_staging_buffer (graph);
7375
Original file line number Diff line number Diff line change @@ -667,7 +667,6 @@ def gen_op_check_fn(self) -> str:
667667 op_check_fn = self .gen_decl (f"prepacked_check_{ op_name } " ) + " {\n "
668668
669669 op_check_fn_body = ""
670- op_check_fn_body += self .gen_conditional_skips ()
671670 op_check_fn_body += self .gen_graph_build_code ()
672671 op_check_fn_body += self .gen_graph_exec_code ()
673672
You can’t perform that action at this time.
0 commit comments