Why can't I pass my directly encoded inputs to a model?

Thank you for the answer, however, it’s taking an unusually long time to process and even returns me the following error :

---------------------------------------------------------------------------

TypeError                                 Traceback (most recent call last)

<ipython-input-3-31d3aa40d5d6> in <module>()
      9 inputs = tokenizer(sentence, padding=True, truncation=True, max_length=400, return_tensors="pt")
     10 outputs = model(**inputs)
---> 11 decoded = tokenizer.decode(outputs)
     12 print(decoded)

1 frames

/usr/local/lib/python3.7/dist-packages/transformers/tokenization_utils_fast.py in _decode(self, token_ids, skip_special_tokens, clean_up_tokenization_spaces, **kwargs)
    546         if isinstance(token_ids, int):
    547             token_ids = [token_ids]
--> 548         text = self._tokenizer.decode(token_ids, skip_special_tokens=skip_special_tokens)
    549 
    550         if clean_up_tokenization_spaces:

TypeError: Can't convert {'logits': [[[40.902488708496094, -0.9500141739845276, 23.778488159179688, 2.97902250289917, 1.0444610118865967, 0.6736031770706177, 1.643608570098877, 7.16114616394043, 9.330695152282715, 2.9293270111083984, 4.922652244567871, -2.1415107250213623, 0.7898175716400146, 7.592775344848633, 11.821823120117188, 4.072318077087402, 6.06789493560791, -0.7886749505996704, -0.48601233959198, 0.9719571471214294, 1.0579102039337158, 4.57142448425293, -4.199000358581543, 3.8000001907348633, 3.0659127235412598, -2.7590901851654053, 4.784829139709473, 2.1427366733551025, -1.2063086032867432, 4.118697166442871, 10.903802871704102, -4.32050895690918, 6.891828536987305, 9.28072738647461, 4.505707263946533, 5.600512504577637, -0.4364454746246338, 3.474435329437256, 13.781015396118164, 2.1815648078918457, 2.7080931663513184, 8.260913848876953, 5.871652603149414, 10.788243293762207, -0.4696718454360962, 3.8598363399505615, 7.86379337310791, 10.398337364196777, 0.23873519897460938, 4.820779800415039, 4.705344200134277, -10.943077087402344, 11.51213264465332, 5.284116744995117, -4.4821977615356445, 0.13441193103790283, 5.286510944366455, 2.136887550354004, 4.943244934082031, 2.728332996368408, 0.04189950227737427, 5.49397087097168, 4.022393226623535, 11.157049179077148, 1.551186203956604, -1.5785623788833618, 0.356919527053833, 2.1878066062927246, 6.765768527984619, 0.19461774826049805, 2.3888068199157715, -0.45217859745025635, 6.269065856933594, -1.6246172189...