GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Allow to import rnnrbm.py even with pylab is not available. · imclab/DeepLearningTutorials@5c0f472

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • code
    • rnnrbm.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎code/rnnrbm.py‎

Copy file name to clipboardExpand all lines: code/rnnrbm.py
+7-2Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44
# More information at http://deeplearning.net/tutorial/rnnrbm.html
55

66
import glob
7-
import numpy
8-
import pylab
97
import sys
108

9+
import numpy
10+
try:
11+
import pylab
12+
except ImportError:
13+
print "pylab isn't available, if you use their fonctionality, it will crash"
14+
print "It can be installed with 'pip install -q Pillow'"
15+
1116
from midi.utils import midiread, midiwrite
1217
import theano
1318
import theano.tensor as T

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.