Skip to content

Commit 0a304b3

Browse files
tianyizheng02github-actions
authored andcommitted
Fix mypy errors in maths/gaussian_error_linear_unit.py (TheAlgorithms#8610)
* updating DIRECTORY.md * Fix mypy errors in gaussian_error_linear_unit.py * updating DIRECTORY.md * updating DIRECTORY.md --------- Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com>
1 parent 4bdf1c2 commit 0a304b3

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Diff for: maths/gaussian_error_linear_unit.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ def gaussian_error_linear_unit(vector: np.ndarray) -> np.ndarray:
3030
Implements the Gaussian Error Linear Unit (GELU) function
3131
3232
Parameters:
33-
vector (np.array): A numpy array of shape (1,n)
34-
consisting of real values
33+
vector (np.ndarray): A numpy array of shape (1, n) consisting of real values
3534
3635
Returns:
37-
gelu_vec (np.array): The input numpy array, after applying
38-
gelu.
36+
gelu_vec (np.ndarray): The input numpy array, after applying gelu
3937
4038
Examples:
4139
>>> gaussian_error_linear_unit(np.array([-1.0, 1.0, 2.0]))

0 commit comments

Comments
 (0)