pytorch/torch/csrc/jit/python
Elias Ellison 62f11f0a35 [JIT] add id function (#34975)
Summary:
add `id` function so to give uses a way of keeping a `seen` set of nn modules.
n practice, this is only used between values of `T` and `T` or `T` and `Optional[T]`, so in this implementation I made it so that None is the only value that can be zero. Python also only guarantees `id()` gives semantically meaningful results for pointer types.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34975

Differential Revision: D20549677

Pulled By: eellison

fbshipit-source-id: cca5ed4ef013f7540f93abf49f91f9830dfdca14
2020-03-20 20:03:10 -07:00
..
init.cpp Add TensorExpr Fuser tests (resubmit). (#35085) 2020-03-20 13:19:31 -07:00
init.h
module_python.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
pybind_utils.h [JIT] add id function (#34975) 2020-03-20 20:03:10 -07:00
pybind.h
python_arg_flatten.cpp
python_arg_flatten.h
python_custom_class.cpp [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_custom_class.h
python_interpreter.cpp Delete OperatorOptions, absorb AliasAnalysisKind into FunctionSchema. (#34588) 2020-03-11 20:59:46 -07:00
python_ir.cpp [CUDA_FUSER] Fork CUDA fuser (#33527) 2020-03-04 20:25:08 -08:00
python_ir.h
python_ivalue.h
python_sugared_value.cpp [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_sugared_value.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_tracer.cpp [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_tracer.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_tree_views.cpp [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
python_tree_views.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
script_init.cpp [jit] Include call stack in OSError message (#34669) 2020-03-18 15:10:23 -07:00
script_init.h [jit] kill script namespace (#34515) 2020-03-11 23:32:48 -07:00
update_graph_executor_opt.cpp
update_graph_executor_opt.h