Skip to content

Commit

Permalink
Update utils.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MaxMax2016 authored Sep 1, 2023
1 parent 4fbbe63 commit deff80f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions grad_extend/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ def save_plot(tensor, savepath):
plt.savefig(savepath)
plt.close()
return


def print_error(info):
print(f"\033[31m {info} \033[0m")

0 comments on commit deff80f

Please sign in to comment.