Welcome to mirror list, hosted at ThFree Co, Russian Federation.

QuantizationHelpers.h « test - github.com/marian-nmt/FBGEMM.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: fdc6e0215ff753463d364f9ea220cd6673a546cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
/*
 * Copyright (c) Facebook, Inc. and its affiliates.
 * All rights reserved.
 * This source code is licensed under the BSD-style license found in the
 * LICENSE file in the root directory of this source tree.
 */
#pragma once
#include <cinttypes>

namespace fbgemm2 {

/*
 * @brief Make sure we won't have overflows from vpmaddubsw instruction.
 */
template <typename T>
void avoidOverflow(int m, int n, int k, const uint8_t* Aint8, T* B);

} // namespace fbgemm2