Skip to content

Why the determinant of the jacobian is 0 ? #4

Description

@AndSonder

Hi @yang-song

I use the following code to test the BasicBlock, but I found the determinant is always 0. Is this normal? I am looking forward to your reply.

basic_model = BasicBlock(
        input_dim=3,
        latent_dim=32,
        kernel1=3,
        kernel2=3,
        kernel3=3,
        type='A',
        config=config,
        shape=[3, 32, 32],
        init_zero=False,
    )
x = torch.randn(1, 3, 32, 32)
log_det = torch.zeros(1)
out, log_det = basic_model([x, log_det])
print(log_det)

Out: tensor([0.], grad_fn=<AddBackward0>)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions