A high-performance inference engine for AI models
#pragma once
#include <metal_stdlib>
#include "../activation/activations.h"
using namespace metal;
using namespace uzu::activation_type;
template <typename T>
static METAL_FUNC float gated_act_mul(T value, T gate, ActivationType act_type) {
const T result = value * activate(gate, act_type);
return static_cast<float>(result);
}