Skip to main content

LinearLayer

LinearLayer[n] represents a trainable, fully connected net layer that computes w.x+b with output vector of size n. 

LinearLayer[{n1,n2,…}] represents a layer that outputs an array of dimensions n1×n2×….

LinearLayer[] leaves the dimensions of the output array to be inferred from context.

LinearLayer[n,opts] includes options for initial weights and other parameters.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.