Skip to content

Commit

Permalink
Update and rename config_creation.py to test_config_creation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
matteocao authored Nov 8, 2023
1 parent ffdbf73 commit 8610926
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tests/config_creation.py

This file was deleted.

10 changes: 10 additions & 0 deletions tests/test_config_creation.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from pipeline_tool.pipeline_config import PipelineConfig

def test_config():
config = PipelineConfig(input_shape=[1,2], output_shape=[12], data_type="long")

print("A simple config as been created")

config.create_mha_conf_equal(nb_mha=2, num_heads=12, embed_dim=3, dropout=0.0, batch_first=True)

print("An MHA config as been added")

0 comments on commit 8610926

Please sign in to comment.