Skip to content

Commit

Permalink
adding @tf.function to test function
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkokotila committed Apr 21, 2024
1 parent a59f0ae commit 9ef50bb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/commands/test_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ def test_scan():
print("\n >>> start Scan()...")

import talos
import tensorflow as tf

from tensorflow.keras.losses import binary_crossentropy
from tensorflow.keras.optimizers.legacy import Adam
Expand All @@ -19,6 +20,7 @@ def test_scan():
'dropout': (.05, .35, .1),
'epochs': [50]}

@tf.function
def iris_model(x_train, y_train, x_val, y_val, params):

model = Sequential()
Expand Down

0 comments on commit 9ef50bb

Please sign in to comment.