Skip to content

Instantly share code, notes, and snippets.

@r7vme
Created July 8, 2019 22:18
Show Gist options
  • Save r7vme/f199511e742dd56ebde95fd7071ec14c to your computer and use it in GitHub Desktop.
Save r7vme/f199511e742dd56ebde95fd7071ec14c to your computer and use it in GitHub Desktop.
L2NormHelper::L2NormHelper(const void* buffer, size_t length)
{
const char *d = reinterpret_cast<const char*>(buffer), *a = d;
op_type = read<int>(d);
eps = read<float>(d);
C = read<int>(d);
H = read<int>(d);
W = read<int>(d);
ASSERT(d == a + length);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment