Skip to content
Discussion options

You must be logged in to vote

the network's output has 4 elements, so it's not directly usable with the slice inferer,

return self.decode_forward(z, self.use_sigmoid), mu, logvar, z

you can define a new model, which returns the first element of the original model:

def _model(x):
    outputs = model(x)
    return outputs[0]

recon = slice_inferer(val_inputs, _model)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants