| 1973 | conv2 = layer.Conv2d(1, 2) |
| 1974 | |
| 1975 | class MyLayer(layer.Layer): |
| 1976 | |
| 1977 | def __init__(self, conv1, conv2): |
| 1978 | super(MyLayer, self).__init__() |
| 1979 | self.conv1 = conv1 |
| 1980 | self.conv2 = conv2 |
| 1981 | |
| 1982 | def forward(self, inputs): |
| 1983 | x = self.conv1(inputs) |
| 1984 | x = self.conv2(x) |
| 1985 | return x |
| 1986 | |
| 1987 | y = MyLayer(conv1, conv2)(x) |
| 1988 | x1 = conv1(x) |
no outgoing calls