Please allow user to specify whether y_hat (and possibly also y) be returned from the forward and compress methods of all codec families. i.e.:
class SimpleVAECompressionModel.forward(CompressionModel):
...
def forward (self, x, return_y_hat:bool = False):
...
if return_y_hat:
return {"x_hat": x_hat, "likelihoods": y_out["likelihoods"], "y_hat": y_hat}
else:
return {"x_hat": x_hat, "likelihoods": y_out["likelihoods"]}
Feature
Please allow user to specify whether y_hat (and possibly also y) be returned from the forward and compress methods of all codec families. i.e.:
Motivation
Additional context