A 3D slice-wise CPU-parallelized implementation on top of TopologyLayer.
computes toplogy loss on each slice on the first axis individually.
computes toplogy loss on a axis epoch % 3
computes toplogy loss on all axes, as an average of the individual axis
This was used as part of our submission for the PARSE 2022 challenge.