pytorch  1.8.2
About: PyTorch provides Tensor computation (like NumPy) with strong GPU acceleration and Deep Neural Networks (in Python) built on a tape-based autograd system. LTS (Long Term Support) release.
  Fossies Dox: pytorch-1.8.2.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

runtime-neon.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Facebook, Inc. and its affiliates.
3 * All rights reserved.
4 *
5 * This source code is licensed under the BSD-style license found in the
6 * LICENSE file in the root directory of this source tree.
7 */
8
9#pragma once
10
11#include <arm_neon.h>
12
13PYTORCH_QNNP_INLINE uint16x8_t
14sub_zero_point(const uint8x8_t va, const uint8x8_t vzp) {
15#if PYTORCH_QNNPACK_RUNTIME_QUANTIZATION
16 // Run-time quantization
17 return vsubl_u8(va, vzp);
18#else
19 // Design-time quantization
20 return vmovl_u8(va);
21#endif
22}
#define PYTORCH_QNNP_INLINE
Definition: common.h:50
PYTORCH_QNNP_INLINE uint16x8_t sub_zero_point(const uint8x8_t va, const uint8x8_t vzp)
Definition: runtime-neon.h:14