Skip to content

Commit d7ff002

Browse files
committed
Fix matplotlib
1 parent 2cc7fb4 commit d7ff002

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lstm/attention/util.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1+
import matplotlib # pylint: disable
2+
matplotlib.use("Agg") # pylint: disable
13
from reader import Vocabulary
24
import matplotlib.patches as mpatches
35
import matplotlib.pyplot as plt
46
import numpy as np
57
import os
68
import argparse
7-
import matplotlib # pylint: disable
8-
matplotlib.use("Agg") # pylint: disable
99

1010

1111
def run_example(model, input_vocabulary, output_vocabulary, text):

0 commit comments

Comments
 (0)