MCPcopy Index your code
hub / github.com/pytorch/tutorials / showPlot

Function showPlot

intermediate_source/seq2seq_translation_tutorial.py:714–720  ·  view source on GitHub ↗
(points)

Source from the content-addressed store, hash-verified

712import numpy as np
713
714def showPlot(points):
715 plt.figure()
716 fig, ax = plt.subplots()
717 # this locator puts ticks at regular intervals
718 loc = ticker.MultipleLocator(base=0.2)
719 ax.yaxis.set_major_locator(loc)
720 plt.plot(points)
721
722
723######################################################################

Callers 1

trainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected