(self,tag,tensor,n_row,ite,normal = False,xmin = None,xmax =None)
@tag:the name of graph_window
        @tensor:(B,N,H,W)
        @n_row:each row to show the image,
def images(self,tag,tensor,n_row,ite,normal = False,xmin = None,xmax =None):
        '''
        @tag:the name of graph_window
        @tensor:(B,N,H,W)
        @n_row:each row to show the image,
        '''
        assert len(tensor.shape) == 4,"your input size must be 4 dim"
        if xmin!=None and xmax!=None:
            grid_img = make_grid(tensor[:n_row].clone().cpu().data,n_row,
                    normalize = False,range =(xmin,xmax))
        grid_img = make_grid(tensor[:n_row].clone().cpu().data,n_row,
            normalize = normal)
        self.writer.add_image(tag,grid_img,ite)
def images ( self , tag , tensor , n_row , ite , normal = False , xmin = None , xmax = None ) : assert len ( tensor . shape ) == 4 , "your input size must be 4 dim" if xmin != None and xmax != None : grid_img = make_grid ( tensor [ : n_row ] . clone ( ) . cpu ( ) . data , n_row , normalize = False , range = ( xmin , xmax ) ) grid_img = make_grid ( tensor [ : n_row ] . clone ( ) . cpu ( ) . data , n_row , normalize = normal ) self . writer . add_image ( tag , grid_img , ite )