initialize
Description
Tip
Most dlnetwork
objects are initialized by default. You only need to
manually initialize a dlnetwork
if it is uninitialized. You can check
if a network is initialized using the Initialized
property of the
dlnetwork
object.
initializes any unset learnable parameters and state values of netUpdated
= initialize(net
)net
based
on the input sizes defined by the network input layers. Any learnable or state parameters
that already contain values remain unchanged.
A network with unset, empty values for learnable and state parameters is
uninitialized. You must initialize an uninitialized
dlnetwork
before you can use it. By default, dlnetwork
objects are constructed with initial parameters and do not need initializing.
initializes any unset learnable parameters and state values of netUpdated
= initialize(net
,X1,...,XN
)net
based
on the example network inputs or network data layout objects X1,...,XN
.
Use this syntax when the network has inputs that are not connected to an input layer.