__init__.py 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Copyright (c) Facebook, Inc. and its affiliates.
  2. # All rights reserved.
  3. #
  4. # This source code is licensed under the BSD-style license found in the
  5. # LICENSE file in the root directory of this source tree.
  6. import torch
  7. from torch._functorch.deprecated import (
  8. combine_state_for_ensemble,
  9. functionalize,
  10. grad,
  11. grad_and_value,
  12. hessian,
  13. jacfwd,
  14. jacrev,
  15. jvp,
  16. make_functional,
  17. make_functional_with_buffers,
  18. vjp,
  19. vmap,
  20. )
  21. # utilities. Maybe these should go in their own namespace in the future?
  22. from torch._functorch.make_functional import (
  23. FunctionalModule,
  24. FunctionalModuleWithBuffers,
  25. )
  26. # Top-level APIs. Please think carefully before adding something to the
  27. # top-level namespace:
  28. # - private helper functions should go into torch._functorch
  29. # - very experimental things should go into functorch.experimental
  30. # - compilation related things should go into functorch.compile
  31. # Was never documented
  32. from torch._functorch.python_key import make_fx
  33. __version__ = torch.__version__