#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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)])

#!/usr/bin/env python3
# -*- coding: utf-8 -*-
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)])

#!/usr/bin/env python3 # -*- coding: utf-8 -*-