refactor: remove unncessary if in swiglu
This commit is contained in:
parent
fec5a9e077
commit
2bc8bf5bf5
|
|
@ -108,12 +108,6 @@ static void glu_swiglu_fp32_per_thread(const struct htp_tensor * src0,
|
||||||
uint64_t t1, t2;
|
uint64_t t1, t2;
|
||||||
t1 = HAP_perf_get_qtimer_count();
|
t1 = HAP_perf_get_qtimer_count();
|
||||||
|
|
||||||
int is_aligned = 1;
|
|
||||||
if (!htp_is_aligned((void *) src0->data, VLEN) || !htp_is_aligned((void *) dst->data, VLEN)) {
|
|
||||||
is_aligned = 0;
|
|
||||||
FARF(HIGH, "swiglu-f32: unaligned addresses in elementwise op, possibly slower execution\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
const uint8_t * restrict data_src0 = (const uint8_t *) src0->data;
|
const uint8_t * restrict data_src0 = (const uint8_t *) src0->data;
|
||||||
const uint8_t * restrict data_src1 = (const uint8_t *) src1->data;
|
const uint8_t * restrict data_src1 = (const uint8_t *) src1->data;
|
||||||
uint8_t * restrict data_dst = (uint8_t *) dst->data;
|
uint8_t * restrict data_dst = (uint8_t *) dst->data;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue