Skip to content

Commit

Permalink
Remove temporarily the dependency on scipy.sparse
Browse files Browse the repository at this point in the history
  • Loading branch information
wilrich-msft committed Apr 6, 2016
1 parent 5d47eb7 commit 358082b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion contrib/Python/cntk/graph.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
from abc import ABCMeta, abstractmethod
import numpy as np
import scipy.sparse as sparse

# Workaround until we have switched to Anaconde with scipy support
#import scipy.sparse as sparse
class sparse(object):
@staticmethod
def issparse(obj):
return hasattr(obj, 'todense')

from .utils import MODEL_INDENTATION

Expand Down

0 comments on commit 358082b

Please sign in to comment.