Archived
ops: act_mul's relu, relu(x)^2 over one tensor
act_mul's `act` takes "relu": with one tensor in both operands it is relu(x)^2, Nemotron-H's ungated expert activation and its vision projector's. libref, libavx and libr4d.
This commit is contained in:
1 parent
63416510a0
commit
2420b2b383
10 files changed
+42
-21
No files matched your search
@@ -31107,7 +31107,7 @@ static void device_phase(const Plugin& pl) {
|
||||
const RadKernelInfo* r = find(pl, "act_mul_bf16");
|
||||
if (!r) ok("act_mul_bf16", false, "row absent");
|
||||
else
|
||||
for (const char* act : { "silu", "gelu", "gelu_tanh", "sigmoid", "quick_gelu" }) {
|
||||
for (const char* act : { "silu", "gelu", "gelu_tanh", "sigmoid", "quick_gelu", "relu" }) {
|
||||
std::vector<RadTensor> ts = { T(nullptr, RAD_BF16, { 5, 645 }),
|
||||
T(nullptr, RAD_BF16, { 5, 645 }),
|
||||
T(nullptr, RAD_BF16, { 5, 645 }) };
|
||||
|
||||
Reference in new issue
Block a user