#NEWLINE# def backward( self , inputs , grad_outputs ) : #NEWLINE# #INDENT# gy = inputs [ 0 ] #NEWLINE# inv_axes = self . axes #NEWLINE# if self . axes : #NEWLINE# #INDENT# axes = tuple ( ( ( ax % len ( self . axes ) ) for ax in self . axes ) ) #NEWLINE# inv_axes = tuple ( numpy . argsort ( axes ) ) #NEWLINE# #UNINDENT# gx = gy . transpose ( inv_axes ) #NEWLINE# return ( gx , )