train.py
def freemem():
        '''Free intermediate blobs from all networks.  These will be reallocated as needed.'''
        net = solver.net
        if net.clearblobs:
            #solver will need values in output blobs
            for (bname, blob) in net.blobs.items():
                if bname not in net.outputs:
                    blob.clear()
            for k in test_nets.keys():
                test_nets[k][0].clearblobs()
Free intermediate blobs from all networks.  These will be reallocated as needed.
Free intermediate blobs from all networks.  These will be reallocated as needed.
Free intermediate blobs from all networks . These will be reallocated as needed .
def freemem():
        net = solver.net
        if net.clearblobs:
            for (bname, blob) in net.blobs.items():
                if bname not in net.outputs:
                    blob.clear()
            for k in test_nets.keys():
                test_nets[k][0].clearblobs()
def freemem ( ) : net = solver . net if net . clearblobs : for ( bname , blob ) in net . blobs . items ( ) : if bname not in net . outputs : blob . clear ( ) for k in test_nets . keys ( ) : test_nets [ k ] [ 0 ] . clearblobs ( )
Free intermediate blobs from all networks.
Free intermediate blobs from all networks .
'''Free intermediate blobs from all networks.  These will be reallocated as needed.''' #solver will need values in output blobs