adjust default parameter; successful run recurrent-xor example

This commit is contained in:
root
2024-07-11 10:57:43 +08:00
parent 4a631f9464
commit 9bad577d89
18 changed files with 118 additions and 136 deletions

View File

@@ -9,7 +9,7 @@ from .activation.act_jnp import Act, ACT_ALL, act_func
from .aggregation.agg_sympy import *
from .activation.act_sympy import *
from typing import Union
from typing import Callable, Union
name2sympy = {
"sigmoid": SympySigmoid,
@@ -34,7 +34,7 @@ name2sympy = {
}
def convert_to_sympy(func: Union[str, callable]):
def convert_to_sympy(func: Union[str, Callable]):
if isinstance(func, str):
name = func
else: