refactor: 拆分engine.py 文件
This commit is contained in:
@@ -4,6 +4,7 @@ import torch
|
||||
|
||||
from astrai.config.param_config import ModelParameter
|
||||
|
||||
|
||||
def test_model_parameter(test_env):
|
||||
save_dir = os.path.join(test_env["test_dir"], "save")
|
||||
model_param = ModelParameter(
|
||||
@@ -30,4 +31,4 @@ def test_transformer(test_env):
|
||||
test_env["transformer_config"].max_len,
|
||||
test_env["transformer_config"].vocab_size,
|
||||
)
|
||||
assert output_logits.shape == target_shape
|
||||
assert output_logits.shape == target_shape
|
||||
|
||||
Reference in New Issue
Block a user