convert enum TransposeDirection and TransposeMode into enum class