Skip to content

Commit

Permalink
Format file
Browse files Browse the repository at this point in the history
  • Loading branch information
owenvallis committed Apr 27, 2023
1 parent a4c172a commit 4dbf73e
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tensorflow_similarity/samplers/tfdata_sampler.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,7 @@ def apply_augmenter_ds(ds: tf.data.Dataset, augmenter: Callable, warmup: int | N

ds = tf.data.Dataset.choose_from_datasets(
[ds, aug_ds],
count_ds.map(
lambda x: tf.cast(0, dtype=tf.dtypes.int64) if x < warmup else tf.cast(1, dtype=tf.dtypes.int64)
),
count_ds.map(lambda x: tf.cast(0, dtype=tf.dtypes.int64) if x < warmup else tf.cast(1, dtype=tf.dtypes.int64)),
)

return ds
Expand Down

0 comments on commit 4dbf73e

Please sign in to comment.