Skip to content

Commit

Permalink
Add test for creating a param-param edge
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jul 8, 2021
1 parent 8a5d270 commit 49a3de2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions papi_tests/test_param_param.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from papi import Papi
from papi_examples.utils import read_config


def test_param_param_edge():
papi = Papi(name="mypipeline", config=read_config("example1.yaml"))
t1 = papi.task("Train model")
t2 = papi.task("Train model")
t1.parameter_edge("learning_rate").to(t2.parameter_edge("learning_rate"))
assert len(papi.edges) == 1

0 comments on commit 49a3de2

Please sign in to comment.