Allow patched TP and encoders to be called with keyword arguments