Songyou's picture
add files
f3b11f9
raw
history blame contribute delete
162 Bytes
import copy
import torch.nn as nn
def clones(module, N):
"Produce N identical layers."
return nn.ModuleList([copy.deepcopy(module) for _ in range(N)])