Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion backends/vulkan/test/utils/test_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ void record_bitw8_image_to_nchw_nobitw8buffer_op(
api::vTensor& v_src,
api::StagingBuffer& dst_buffer) {
vkapi::PipelineBarrier pipeline_barrier{};
uint32_t buffer_len = utils::safe_downcast<uint32_t>(dst_buffer.numel() / 4);
auto buffer_len = utils::safe_downcast<uint32_t>(dst_buffer.numel() / 4);
utils::uvec3 global_wg_size = {buffer_len, 1, 1};

std::string kernel_name = "bitw8_image_to_nchw_nobitw8buffer";
Expand Down
2 changes: 1 addition & 1 deletion backends/xnnpack/runtime/utils/utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ executorch::runtime::Error QuantizePerTensor(
double scale,
int zero_point) {
const float* rdata = rtensor.const_data_ptr<float>();
int numel = rtensor.numel();
auto numel = rtensor.numel();
ET_CHECK_OR_RETURN_ERROR(
(std::is_same<T, uint8_t>::value || std::is_same<T, int8_t>::value),
Internal,
Expand Down
Loading