Covnert encoding by the input layer instead of converter