Visualization in Variable

How to visualize a martix in the Variable type, is there any build-in function to use. Thx.

you can use matplotlib or your favorite python visualization.

if x is your Variable

x = Variable(...)
viz_matrix = x.data.numpy()
# visualize viz_matrix with matplotlib