heuristics for XavierInitializer to determine fan-in.