Closed Losses closed 3 years ago
Say, we have a net, and do following operation:
const layer = net.layers[0]; if (layer.layer_type === 'conv') { layer }
In previous version, layer will always be ILayer, but TypeScript could automatically inference it from its typing.
With this pull request, the type of layer will become ConvLayer, which is more detailed.
layer
ConvLayer
Oh, shit... sorry, wrong repo...
Say, we have a net, and do following operation:
In previous version, layer will always be ILayer, but TypeScript could automatically inference it from its typing.
With this pull request, the type of
layer
will becomeConvLayer
, which is more detailed.