Skip to content

Instantly share code, notes, and snippets.

@dcslin
Created July 15, 2020 01:29
Show Gist options
  • Save dcslin/b5b74274379990784dfbcffac962502f to your computer and use it in GitHub Desktop.
Save dcslin/b5b74274379990784dfbcffac962502f to your computer and use it in GitHub Desktop.
15jul.md

qabot:

  1. fix cos sim bug, value ok
  2. lstm+cos sim+margin loss, loss ok, top1 accuracy 4%~10%
  3. lstm+cos sim+pooling+margin, loss not ok, top1 accuracy not ok
  4. pytorch: lstm+cos sim+pooling+margin, loss ok

kint:

  1. follow numpy convension, if int tensor + int tensor, return int tensor, else return float
  2. check input types and cast to float in the GenTensorScalarFn when necessary
  3. pr merged

c++ print trace stack when crash:

  1. tried https://github.com/bombela/backward-cpp
  2. pros: easy to integrate, pretty result, result example: https://gist.github.com/dcslin/e3c36d546e7610a61b10ac7df4a6339b
  3. cons: need to check how to work with SWIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment