def wrapCrossMapLRN(data, N, alpha, beta, K, test): result = MIOpen.lrn(data, MIOpen.LRNMode.cross, N, alpha, beta, K, test) return result if not test else (result, None)
def wrapMapLRN(data, means, N, alpha, beta, K, test): assert means is None result = MIOpen.lrn(data, MIOpen.LRNMode.map, N, alpha, beta, K, test) return result if not test else (result, None)