From ca3bb7c4b382b447616953b199f7a36c98bdd940 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 12 Sep 2017 19:32:32 +0200 Subject: raise NotImplementedError() instead of assert False --- SeparableConvolution.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'SeparableConvolution.py') diff --git a/SeparableConvolution.py b/SeparableConvolution.py index 9e5d1e9..4d8563a 100644 --- a/SeparableConvolution.py +++ b/SeparableConvolution.py @@ -35,7 +35,7 @@ class SeparableConvolution(torch.autograd.Function): ) elif input1.is_cuda == False: - assert(False) # NOT IMPLEMENTED + raise NotImplementedError() # end @@ -43,6 +43,6 @@ class SeparableConvolution(torch.autograd.Function): # end def backward(self, gradOutput): - assert(false) # NOT IMPLEMENTED + raise NotImplementedError() # end -# end \ No newline at end of file +# end -- cgit v1.2.3-70-g09d2