(self,*args)
Args are data numpy array
Args are data numpy array
Args are data numpy array
def add_data(self,*args):
        """Args are data numpy array
        """
        del self.param.blobs[:]
        for data in args:
            new_blob = self.param.blobs.add()
            for dim in data.shape:
                new_blob.shape.dim.append(dim)
            new_blob.data.extend(data.flatten().astype(float))
def add_data ( self , * args ) : del self . param . blobs [ : ] for data in args : new_blob = self . param . blobs . add ( ) for dim in data . shape : new_blob . shape . dim . append ( dim ) new_blob . data . extend ( data . flatten ( ) . astype ( float ) )