* Add qnn conv2d attributes for input_tensor_scale and kernel_tensor_scale. The lowering in the tflite frontend loses the input_tensor_scale and the kernel_tensor_scale by multiplying it and putting it into the Requantize operation. This means that any graph partitioning passes or other passes that need to access this information no longer have it available in the qnn dialect. regards Ramana * Store input tensor scale and Weight tensor scale for Dense as well As for conv2d, the tflite frontend drops the input tensor scale and the weight tensor scale from the relay op. Store it as separate fields in there. * Fix unintentional tab * Rename input_tensor_scale to input_scale and kernel_tensor_scale to kernel_scale for conv2d. * input_tensor_scale -> input_scale weight_tensor_scale->weight_scale * Rework dense testcase And use input_scale and kernel_scale * Be consistent in use of input_scale and kernel_scale values * Fixup qnn conv2d tests for input_scale and kernel_scale * Make pydoc identical between conv2d and dense for weight_tensor * Fix up conv2d parameters to be in the same order between C++ and python * Fix ordering of parameters for dense. * Add input_scale and output_scale to try and satisfy ci gods * Delete input_scale and kernel_scale. nn.conv2d does not contain input_scale and kernel_scale. We need to delete it when lowering it to nn.conv2d. * Add input_scale and kernel_scale for qnn.conv2d
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
node | Loading commit data... | |
relay | Loading commit data... | |
runtime | Loading commit data... | |
api_registry.h | Loading commit data... | |
arithmetic.h | Loading commit data... | |
attrs.h | Loading commit data... | |
base.h | Loading commit data... | |
buffer.h | Loading commit data... | |
build_module.h | Loading commit data... | |
channel.h | Loading commit data... | |
codegen.h | Loading commit data... | |
data_layout.h | Loading commit data... | |
dtype.h | Loading commit data... | |
expr.h | Loading commit data... | |
expr_operator.h | Loading commit data... | |
ir.h | Loading commit data... | |
ir_functor_ext.h | Loading commit data... | |
ir_mutator.h | Loading commit data... | |
ir_pass.h | Loading commit data... | |
ir_visitor.h | Loading commit data... | |
logging.h | Loading commit data... | |
lowered_func.h | Loading commit data... | |
operation.h | Loading commit data... | |
packed_func_ext.h | Loading commit data... | |
schedule.h | Loading commit data... | |
schedule_pass.h | Loading commit data... | |
target_info.h | Loading commit data... | |
tensor.h | Loading commit data... | |
tensor_intrin.h | Loading commit data... |