krasserm / perceiver-io

A PyTorch implementation of Perceiver, Perceiver IO and Perceiver AR with PyTorch Lightning scripts for distributed training
Apache License 2.0
437 stars 40 forks source link

NotImplementedError: Module [InputAdapter] is missing the required "forward" function #59

Open jiveshkalra opened 3 weeks ago

jiveshkalra commented 3 weeks ago

Hey , I was trying to make my own custom Audio encoding through perceiver but I found out that the base Input Adapter model itself is missing a "forward" function

Code to reproduce ->

from perceiver.model.core import InputAdapter 
input_adapter = InputAdapter(10) 
input_adapter ("xyz")

Screen Shot -> image

Now due to this , other things dependent on Input Adapter are also not working like Rotary Support image

jiveshkalra commented 3 weeks ago

Also I wanted to know is there any work arround for this? Entire research has been built upon these foundational functions so there might be still someway to use them maybe?

jiveshkalra commented 3 weeks ago

PS: due to this I am not able to use all the things that depend on InputAdapter, from Rotary Support to Perceiver Encoder to the Perceiver itself..