#NEWLINE# def allocate( self , shared_outputs = None ) : #NEWLINE# #INDENT# "\n        Allocates output buffer to store activations from fprop.\n        Don't reallocate if it already exists.\n        Only allocate space if layer owns its own output (i.e. bias, activation work in-place,\n        so do not own their output).\n        outputs can be allocated from a pre-allocated pool if shared_outputs is provided\n\n        Arguments:\n            shared_outputs (Tensor, optional): pre-allocated tensor for activations to be\n                                               computed into\n\n        " #NEWLINE# if self . outputs : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# if self . owns_output : #NEWLINE# #INDENT# self . outputs = self . be . iobuf ( shared_outputs . out_shape , shared = shared_outputs , parallelism = self . parallelism )