def nchw_to_nhwc_index(index: int) -> int:
	"""
	Converts an single index from NCHW to NHWC, since ONNX uses NCHW, ELINA expects NHWC,

	:param index: the index to be converted

	:return: converted index
	"""
	assert 0 <= index <= 3, f"index out of range: {index}"
	if index == 0:  # batch (N)
		return 0
	elif index == 1:  # channel (C)
		return 3
	else:
		return index - 1