#NEWLINE# def check_nondiff_rop( self , y ) : #NEWLINE# #INDENT# " If your op is not differentiable(so you can't define Rop)\n        test that an error is raised." #NEWLINE# raised = False #NEWLINE# try : #NEWLINE# #INDENT# tmp = tensor . Rop ( y , self . x , self . v ) #NEWLINE# #UNINDENT# except ValueError : #NEWLINE# #INDENT# raised = True #NEWLINE# #UNINDENT# if ( not raised ) : #NEWLINE# #INDENT# self . fail ( 'Op did not raise an error even though the function is not differentiable' )