NetSharedArray["name"]
represents an array in a net that is shared by more than one layer.


NetSharedArray
NetSharedArray["name"]
represents an array in a net that is shared by more than one layer.
Examples
Possible Issues (1)
The "MovingMean" and "MovingVariance" arrays of BatchNormalizationLayer cannot be shared:


The other arrays of BatchNormalizationLayer can be shared:
See Also
Tech Notes
Text
Wolfram Research (2018), NetSharedArray, Wolfram Language function, https://reference.wolfram.com/language/ref/NetSharedArray.html (updated 2020).
CMS
Wolfram Language. 2018. "NetSharedArray." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/NetSharedArray.html.
APA
Wolfram Language. (2018). NetSharedArray. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/NetSharedArray.html
BibTeX
@misc{reference.wolfram_2025_netsharedarray, author="Wolfram Research", title="{NetSharedArray}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/NetSharedArray.html}", note=[Accessed: 09-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_netsharedarray, organization={Wolfram Research}, title={NetSharedArray}, year={2020}, url={https://reference.wolfram.com/language/ref/NetSharedArray.html}, note=[Accessed: 09-August-2025]}