MCPcopy Index your code
hub / github.com/patrickloeber/pytorchTutorial / imshow

Function imshow

15_transfer_learning.py:45–52  ·  view source on GitHub ↗

Imshow for Tensor.

(inp, title)

Source from the content-addressed store, hash-verified

43
44
45def imshow(inp, title):
46 """Imshow for Tensor."""
47 inp = inp.numpy().transpose((1, 2, 0))
48 inp = std * inp + mean
49 inp = np.clip(inp, 0, 1)
50 plt.imshow(inp)
51 plt.title(title)
52 plt.show()
53
54
55# Get a batch of training data

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected