Last active
December 31, 2023 06:24
-
-
Save weiaicunzai/86f943b161fcaf2547ce9e404dbb042a to your computer and use it in GitHub Desktop.
using tensorflow Dataset api to do data_argument
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import cProfile, pstats | |
from pstats import SortKey | |
sortby = SortKey.CUMULATIVE | |
with cProfile.Profile() as pr: | |
# your code here | |
ps = pstats.Stats(pr).sort_stats(sortby) | |
ps.print_stats() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment