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.
Details
- NetSharedArray["name"] evaluates to NetArray["name"].
Examples
Possible Issues (1)
The "MovingMean" and "MovingVariance" arrays of BatchNormalizationLayer cannot be shared:
BatchNormalizationLayer["MovingMean" -> NetSharedArray["MovingMean"]]BatchNormalizationLayer["MovingVariance" -> NetSharedArray["MovingVariance"]]The other arrays of BatchNormalizationLayer can be shared:
Information[NetInsertSharedArrays[BatchNormalizationLayer[]], "Arrays"]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_2026_netsharedarray, author="Wolfram Research", title="{NetSharedArray}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/NetSharedArray.html}", note=[Accessed: 15-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_netsharedarray, organization={Wolfram Research}, title={NetSharedArray}, year={2020}, url={https://reference.wolfram.com/language/ref/NetSharedArray.html}, note=[Accessed: 15-June-2026]}