Skip to content

Commit 5110fc6

Browse files
committed
Set get_activation by name to pure
1 parent 4bfa307 commit 5110fc6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/nf/nf_activation.f90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -733,7 +733,7 @@ pure function eval_3d_celu_prime(self, x) result(res)
733733
end function eval_3d_celu_prime
734734

735735
! Utility Functions
736-
function get_activation_by_name(activation_name) result(res)
736+
pure function get_activation_by_name(activation_name) result(res)
737737
character(len=*), intent(in) :: activation_name
738738
class(activation_function), allocatable :: res
739739

@@ -815,4 +815,4 @@ pure function get_name(self) result(name)
815815
end select
816816
end function get_name
817817

818-
end module nf_activation
818+
end module nf_activation

0 commit comments

Comments
 (0)