Skip to content

Activations in this model are ternary {-1,0,1}, not binary {-1,1}Β #23

@mrcslws

Description

@mrcslws

This code uses tensor.sign() to binarize the activations and weights.

return tensor.sign()

The desired behavior is to always return -1 or 1, but sign() returns 0 for values that are 0.

Batch normalization makes 0 less probable, but it can still happen. The code should probably force every activation to be either -1 or 1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions