mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-02 03:55:34 +00:00
Add missing GELU to ApiHelpers.h
This commit is contained in:
parent
4c1a410d54
commit
e3ec30efb6
1 changed files with 2 additions and 0 deletions
|
|
@ -28,6 +28,7 @@ union ActivationOperatorDescUnion
|
|||
DML_ACTIVATION_TANH_OPERATOR_DESC tanh;
|
||||
DML_ACTIVATION_THRESHOLDED_RELU_OPERATOR_DESC thresholdedRelu;
|
||||
DML_ACTIVATION_SHRINK_OPERATOR_DESC shrink;
|
||||
DML_ACTIVATION_GELU_OPERATOR_DESC gelu;
|
||||
};
|
||||
|
||||
struct ActivationOperatorDesc
|
||||
|
|
@ -64,6 +65,7 @@ struct ActivationOperatorDesc
|
|||
case DML_OPERATOR_ACTIVATION_TANH: return { activationType, ¶ms.tanh };
|
||||
case DML_OPERATOR_ACTIVATION_THRESHOLDED_RELU: return { activationType, ¶ms.thresholdedRelu };
|
||||
case DML_OPERATOR_ACTIVATION_SHRINK: return { activationType, ¶ms.shrink };
|
||||
case DML_OPERATOR_ACTIVATION_GELU: return { activationType, ¶ms.gelu };
|
||||
default:
|
||||
ORT_THROW_HR(E_INVALIDARG);
|
||||
return { activationType, ¶ms.relu };
|
||||
|
|
|
|||
Loading…
Reference in a new issue