the workspace ends past a layer's tensors and past the output's and the
output gradient's (placed from its start, below), whichever reach further
584def cgWorkEnd : Nat =
585 (naturalSaturatingSubtract
586 (naturalSelect
587 (naturalLess (naturalAdd cgDown cgPlaneBytes) (naturalAdd cgEmbeddingHalfT cgEmbeddingHalfTBytes))
588 (naturalAdd cgEmbeddingHalfT cgEmbeddingHalfTBytes)
589 (naturalAdd cgDown cgPlaneBytes))
590 (cgArena zero))The compiler supplied declaration spans and resolved links from this source snapshot. This page does not assert that this file belongs to a checked closure.