__init__.py 467 B

12345678910111213141516
  1. # This file has moved to under torch/_functorch. It is not public API.
  2. # If you are not a PyTorch developer and you are relying on the following
  3. # imports, please file an issue.
  4. from torch._functorch.vmap import (
  5. _add_batch_dim,
  6. _broadcast_to_and_flatten,
  7. _get_name,
  8. _remove_batch_dim,
  9. _validate_and_get_batch_size,
  10. Tensor,
  11. tree_flatten,
  12. tree_unflatten,
  13. _process_batched_inputs,
  14. _create_batched_inputs,
  15. _unwrap_batched,
  16. )