MCPcopy Create free account
hub / github.com/KeepTryingTo/Pytorch-GAN / draw

Function draw

Adversarial_AutoEncoder/utils.py:42–47  ·  view source on GitHub ↗
(loss,epochs)

Source from the content-addressed store, hash-verified

40
41
42def draw(loss,epochs):
43 plt.plot(range(1,epochs + 1),loss,label = 'trainLoss')
44 plt.legend()
45 plt.title('AE-LOSS')
46 plt.savefig('logs/figure.png')
47 # plt.show()
48
49
50def save_checkPoint(model,optimizer,filename):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected