Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Conversation

@lvdmaaten
Copy link
Contributor

@lvdmaaten lvdmaaten commented Jul 16, 2018

At training time, CondenseNets use a convolution in which certain input-output connections (that is, the entire kernel) are masked out. This example implements a combination of that masked convolution with a ReLU activations.

The goal is to further work out this example into increasingly large chunks of the CondenseNet.

Tested this internally: tests pass.

.devices(args.tuner_devices))

# This function is used for reinforcing tuning
# 1. make_idx is small and does not get tuned or saved, just using naive
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These comments are actually from tum.py

output.cpu(),
Output.cpu(),
input_data.cpu(), conv.weight.cpu(), mask.cpu(),
precision=1e-5)
Copy link
Contributor

@nicolasvasilache nicolasvasilache Jul 16, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So this is going to be 1e-5 relative precision.
Maybe it is better to write:

tc.assert_almost_equal(
    output.cpu(),
    Output.cpu(),
    input_data.cpu(), conv.weight.cpu(), mask.cpu(),
    operations= C * K * K,
    precision=1e-7)

This means that we have 1e-7 relative precision (i.e. machine precision) modulo C * K * K FP representation error (the number of accumulations in a single memory element).

At training time, CondenseNets use a convolution in which certain input-output connections (that is, the entire kernel) are masked out. This example implements a combination of that masked convolution with a ReLU activations.

The goal is to further work out this example into increasingly large chunks of the CondenseNet.

Tested this internally: tests pass.
Copy link
Contributor

@nicolasvasilache nicolasvasilache left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool, thanks for your contribution!

Please wait for CI to be green before merging

@lvdmaaten lvdmaaten closed this Jul 16, 2018
@lvdmaaten lvdmaaten reopened this Jul 16, 2018
@nicolasvasilache nicolasvasilache merged commit 14d1c8c into facebookresearch:master Jul 16, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants