#ifndef TFC_H_ | |
#define TFC_H_ | |
#include <stdint.h> | |
namespace ref { | |
int32_t MultiplyByQuantizedMultiplier(int32_t x, int32_t quantized_multiplier, int shift); | |
} // namespace ref | |
static int Offset(const int32_t shape[4], const int32_t i0, const int32_t i1, const int32_t i2, const int32_t i3) { | |
return ((i0 * shape[1] + i1) * shape[2] + i2) * shape[3] + i3; | |
} | |
#endif // TFC_H_ |