Repository: pytorch
Issue: ASAN detected leaks on python -c 'import torch'
Labels: module: memory usage,triaged

They seem relatively benign, but might still be worth looking into. Some of them might just be Python bugs but I see a bunch of leaks related to pybind11.

```
=================================================================
==15599==ERROR: LeakSanitizer: detected memory leaks

Direct leak of 1492688 byte(s) in 518 object(s) allocated from:
    #0 0x7fc0a1304602 in malloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98602)
    #1 0x556778751803 in PyObject_Malloc (/private/home/ezyang/pytorch-env/bin/python3.6+0xe8803)

Direct leak of 6177 byte(s) in 8 object(s) allocated from:
    #0 0x7fc0a1304602 in malloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98602)
    #1 0x556778750050 in _PyObject_Alloc.isra.0 (/private/home/ezyang/pytorch-env/bin/python3.6+0xe7050)

Direct leak of 1016 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1304961 in realloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98961)
    #1 0x55677877cd2c in _PyObject_GC_Resize (/private/home/ezyang/pytorch-env/bin/python3.6+0x113d2c)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093919358 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, int, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, int (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc093916ed2 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914fc5 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391336e in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1441
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093919126 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc093916e34 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914de9 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913354 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1411
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc0939186b0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc093916b09 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391487d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3}, pybind11::return_value_policy>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::return_value_policy const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132e4 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1399
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093918c4a in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, int, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, int (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc093916cf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914a31 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913320 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1406
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc09391c834 in _ZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl14pickle_factoryIZNS_5enum_IN5torch8autograd8profiler13ProfilerStateEEC4IJEEERKNS_6handleEPKcDpRKT_EUlRKS9_E27_ZNSB_IJEEESE_SG_SK_EUlNS_5tupleEE28_FSO_SM_EFS9_SO_EE7executeINS_6class_IS9_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderESO_E_vJS13_SO_EJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOSW_PFT0_DpT1_EDpRKT2_ /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc09391ada1 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_&&, pybind11::name const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919752 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&, pybind11::detail::is_new_style_constructor const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391708e in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:324
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093918358 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc0939169ff in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391476b in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132ba in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1384
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc09391c440 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::tuple, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::tuple (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc09391acf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919515 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093917067 in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:318
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093918f1e in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc093916d96 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914c0d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391333a in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1410
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc09391bd00 in void pybind11::cpp_function::initialize<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, void, pybind11::detail::value_and_holder, int, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, void (*)(pybind11::detail::value_and_holder, int), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc09391aa47 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, pybind11::name const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093918a06 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute&&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093916c7a in void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:234
    #6 0x7fc09391494f in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1127
    #7 0x7fc093913306 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1405
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 128 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935ff352 in pybind11::cpp_function::make_function_record() /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:90
    #2 0x7fc093918100 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::str, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::str (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:100
    #3 0x7fc09391695a in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc0939145a7 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913298 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1377
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Direct leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1304602 in malloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98602)
    #1 0x5567787523b5 in PyThread_allocate_lock (/private/home/ezyang/pytorch-env/bin/python3.6+0xe93b5)

Indirect leak of 111795 byte(s) in 110 object(s) allocated from:
    #0 0x7fc0a1304602 in malloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98602)
    #1 0x556778751803 in PyObject_Malloc (/private/home/ezyang/pytorch-env/bin/python3.6+0xe8803)

Indirect leak of 1792 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1304961 in realloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98961)
    #1 0x55677879e005 in _PyUnicodeWriter_Finish (/private/home/ezyang/pytorch-env/bin/python3.6+0x135005)

Indirect leak of 1504 byte(s) in 2 object(s) allocated from:
    #0 0x7fc0a1304961 in realloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98961)
    #1 0x55677877cd2c in _PyObject_GC_Resize (/private/home/ezyang/pytorch-env/bin/python3.6+0x113d2c)

Indirect leak of 608 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1304602 in malloc (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x98602)
    #1 0x556778751803 in PyObject_Malloc (/private/home/ezyang/pytorch-env/bin/python3.6+0xe8803)
    #2 0x7fc09a536df7  (<unknown module>)

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc0939191d8 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916e34 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914de9 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913354 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1411
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 88 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc093918fd0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916d96 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914c0d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391333a in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1410
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 81 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc093918fd0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916d96 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914c0d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391333a in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1410
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 81 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc0939191d8 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916e34 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914de9 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913354 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1411
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 71 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc09391c8ed in _ZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl14pickle_factoryIZNS_5enum_IN5torch8autograd8profiler13ProfilerStateEEC4IJEEERKNS_6handleEPKcDpRKT_EUlRKS9_E27_ZNSB_IJEEESE_SG_SK_EUlNS_5tupleEE28_FSO_SM_EFS9_SO_EE7executeINS_6class_IS9_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderESO_E_vJS13_SO_EJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOSW_PFT0_DpT1_EDpRKT2_ /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391ada1 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_&&, pybind11::name const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919752 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&, pybind11::detail::is_new_style_constructor const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391708e in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:324
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 65 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc09391bdb9 in void pybind11::cpp_function::initialize<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, void, pybind11::detail::value_and_holder, int, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, void (*)(pybind11::detail::value_and_holder, int), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391aa47 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, pybind11::name const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093918a06 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute&&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093916c7a in void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:234
    #6 0x7fc09391494f in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1127
    #7 0x7fc093913306 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1405
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 59 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc09391c4f2 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::tuple, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::tuple (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391acf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919515 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093917067 in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:318
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 58 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc09391c8ed in _ZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl14pickle_factoryIZNS_5enum_IN5torch8autograd8profiler13ProfilerStateEEC4IJEEERKNS_6handleEPKcDpRKT_EUlRKS9_E27_ZNSB_IJEEESE_SG_SK_EUlNS_5tupleEE28_FSO_SM_EFS9_SO_EE7executeINS_6class_IS9_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderESO_E_vJS13_SO_EJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOSW_PFT0_DpT1_EDpRKT2_ /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391ada1 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_&&, pybind11::name const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919752 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&, pybind11::detail::is_new_style_constructor const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391708e in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:324
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 56 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc09391bdb9 in void pybind11::cpp_function::initialize<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, void, pybind11::detail::value_and_holder, int, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, void (*)(pybind11::detail::value_and_holder, int), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391aa47 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, pybind11::name const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093918a06 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute&&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093916c7a in void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:234
    #6 0x7fc09391494f in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1127
    #7 0x7fc093913306 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1405
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 53 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc0939181c0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::str, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::str (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391695a in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc0939145a7 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913298 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1377
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 53 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc09391940a in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, int, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, int (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916ed2 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914fc5 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391336e in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1441
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 52 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc093918cfc in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, int, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, int (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916cf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914a31 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913320 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1406
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 46 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc09391c4f2 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::tuple, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::tuple (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391acf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919515 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093917067 in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:318
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 44 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc0939181c0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::str, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::str (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391695a in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc0939145a7 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913298 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1377
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 44 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc093918cfc in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, int, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, int (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916cf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914a31 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913320 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1406
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 44 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc09391940a in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, int, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, int (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916ed2 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914fc5 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391336e in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1441
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc09391940a in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, int, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, int (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916ed2 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914fc5 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391336e in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1441
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc09391c4f2 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::tuple, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::tuple (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391acf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919515 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093917067 in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:318
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc0939181c0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::str, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::str (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391695a in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc0939145a7 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913298 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1377
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc09391c8ed in _ZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl14pickle_factoryIZNS_5enum_IN5torch8autograd8profiler13ProfilerStateEEC4IJEEERKNS_6handleEPKcDpRKT_EUlRKS9_E27_ZNSB_IJEEESE_SG_SK_EUlNS_5tupleEE28_FSO_SM_EFS9_SO_EE7executeINS_6class_IS9_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderESO_E_vJS13_SO_EJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOSW_PFT0_DpT1_EDpRKT2_ /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391ada1 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_&&, pybind11::name const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919752 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&, pybind11::detail::is_new_style_constructor const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391708e in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:324
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc093918404 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc0939169ff in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391476b in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132ba in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1384
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc09391875c in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916b09 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391487d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3}, pybind11::return_value_policy>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::return_value_policy const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132e4 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1399
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc09391bdb9 in void pybind11::cpp_function::initialize<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, void, pybind11::detail::value_and_holder, int, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, void (*)(pybind11::detail::value_and_holder, int), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391aa47 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, pybind11::name const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093918a06 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute&&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093916c7a in void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:234
    #6 0x7fc09391494f in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1127
    #7 0x7fc093913306 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1405
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc093918cfc in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, int, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, int (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916cf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914a31 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913320 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1406
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc093918fd0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916d96 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914c0d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391333a in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1410
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 32 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a1305532 in operator new(unsigned long) (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x99532)
    #1 0x7fc0935fff50 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:306
    #2 0x7fc0939191d8 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916e34 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914de9 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913354 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1411
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 24 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc09391875c in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916b09 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391487d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3}, pybind11::return_value_policy>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::return_value_policy const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132e4 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1399
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 23 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc09360050c in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:385
    #2 0x7fc093918404 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc0939169ff in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391476b in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132ba in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1384
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 23 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc09391875c in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916b09 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391487d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3}, pybind11::return_value_policy>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::return_value_policy const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132e4 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1399
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 22 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ffca1 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:281
    #2 0x7fc093918404 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc0939169ff in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391476b in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132ba in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1384
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 13 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc09391c8ed in _ZN8pybind1112cpp_function10initializeIZNOS_6detail8initimpl14pickle_factoryIZNS_5enum_IN5torch8autograd8profiler13ProfilerStateEEC4IJEEERKNS_6handleEPKcDpRKT_EUlRKS9_E27_ZNSB_IJEEESE_SG_SK_EUlNS_5tupleEE28_FSO_SM_EFS9_SO_EE7executeINS_6class_IS9_JEEEJEEEvRT_DpRKT0_EUlRNS2_16value_and_holderESO_E_vJS13_SO_EJNS_4nameENS_9is_methodENS_7siblingENS2_24is_new_style_constructorEEEEvOSW_PFT0_DpT1_EDpRKT2_ /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391ada1 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_&&, pybind11::name const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919752 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&, pybind11::detail::is_new_style_constructor const) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391708e in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:324
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 13 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc09391c4f2 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::tuple, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::tuple (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391acf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093919515 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093917067 in void pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:318
    #6 0x7fc093915397 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>(pybind11::detail::initimpl::pickle_factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::tuple)#30}, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29} (torch::autograd::profiler::ProfilerState const&), torch::autograd::profiler::ProfilerState (pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#29})>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1133
    #7 0x7fc093913397 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1443
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc09391bdb9 in void pybind11::cpp_function::initialize<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, void, pybind11::detail::value_and_holder, int, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, void (*)(pybind11::detail::value_and_holder, int), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391aa47 in pybind11::cpp_function::cpp_function<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, pybind11::detail::is_new_style_constructor, void>(pybind11::class_<torch::autograd::profiler::ProfilerState>&&, pybind11::name const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093918a06 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) &&::{lambda(pybind11::detail::value_and_holder&, int)#1}, pybind11::detail::is_new_style_constructor>(char const*, pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute&&, pybind11::detail::is_new_style_constructor const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093916c7a in void pybind11::detail::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>::execute<pybind11::class_<torch::autograd::profiler::ProfilerState>>(pybind11::class_<torch::autograd::profiler::ProfilerState>&) && /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/detail/init.h:234
    #6 0x7fc09391494f in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}::initimpl::factory<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(int)#4}, pybind11::detail::void_type (*)(), torch::autograd::profiler::ProfilerState (int), pybind11::detail::void_type>&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1127
    #7 0x7fc093913306 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1405
    #8 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #9 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc0939181c0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::str, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::str (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc09391695a in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc0939145a7 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#1}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913298 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1377
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 9 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc09391940a in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, int, torch::autograd::profiler::ProfilerState const&, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, int (*)(torch::autograd::profiler::ProfilerState const&), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916ed2 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914fc5 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&)#28}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391336e in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1441
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 8 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc093918cfc in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, int, torch::autograd::profiler::ProfilerState, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, int (*)(torch::autograd::profiler::ProfilerState), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916cf8 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914a31 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState)#5}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913320 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1406
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc093918fd0 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916d96 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914c0d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#6}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc09391333a in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1410
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 7 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc0939191d8 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, bool, torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*, pybind11::name, pybind11::is_method, pybind11::sibling>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, bool (*)(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*), pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916e34 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}, pybind11::name, pybind11::is_method, pybind11::sibling, void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&, pybind11::name const&, pybind11::is_method const&, pybind11::sibling const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc093914de9 in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(torch::autograd::profiler::ProfilerState const&, torch::autograd::profiler::ProfilerState*)#7}&&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1086
    #5 0x7fc093913354 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1411
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc093918404 in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc0939169ff in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391476b in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2}>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#2} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132ba in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1384
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

Indirect leak of 1 byte(s) in 1 object(s) allocated from:
    #0 0x7fc0a12ce30f in strdup (/usr/lib/gcc/x86_64-linux-gnu/5/libasan.so+0x6230f)
    #1 0x7fc0935ff412 in pybind11::cpp_function::initialize_generic(pybind11::detail::function_record*, char const*, std::type_info const* const*, unsigned long) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:192
    #2 0x7fc09391875c in void pybind11::cpp_function::initialize<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict, pybind11::handle>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::dict (*)(pybind11::handle)) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:171
    #3 0x7fc093916b09 in pybind11::cpp_function::cpp_function<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, , void>(pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:66
    #4 0x7fc09391487d in pybind11::class_<torch::autograd::profiler::ProfilerState>& pybind11::class_<torch::autograd::profiler::ProfilerState>::def_property_readonly_static<pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3}, pybind11::return_value_policy>(char const*, pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*)::{lambda(pybind11::handle)#3} const&, pybind11::return_value_policy const&) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1207
    #5 0x7fc0939132e4 in pybind11::enum_<torch::autograd::profiler::ProfilerState>::enum_<>(pybind11::handle const&, char const*) /private/home/ezyang/pytorch/torch/lib/pybind11/include/pybind11/pybind11.h:1399
    #6 0x7fc093910536 in THPAutograd_initExtension(_object*) torch/csrc/autograd/init.cpp:38
    #7 0x556778778019 in _PyCFunction_FastCallDict (/private/home/ezyang/pytorch-env/bin/python3.6+0x10f019)

SUMMARY: AddressSanitizer: 1618364 byte(s) leaked in 692 allocation(s).
```