Skip to content

Commit e26d0e1

Browse files
committed
add explit dynamic param for easy change to False
1 parent d1086d6 commit e26d0e1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

graph_net/test/bert_model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def create_model():
2424
inputs = {k: v.to(device) for k, v in inputs.items()}
2525

2626
model = create_model()
27-
model = graph_net.torch.extract(name=get_model_name())(model)
27+
model = graph_net.torch.extract(name=get_model_name(), dynamic=True)(model)
2828

2929
print("Running inference...")
3030
output = model(**inputs)

graph_net/test/vision_model_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
model.to(device)
2929
normalized_input = normalized_input.to(device)
3030

31-
model = graph_net.torch.extract(name="resnet18")(model)
31+
model = graph_net.torch.extract(name="resnet18", dynamic=True)(model)
3232

3333
print("Running inference...")
3434
print("Input shape:", normalized_input.shape)

0 commit comments

Comments
 (0)