Skip to content

Commit 645387d

Browse files
committed
Revert "Accept Python buffer inputs (pytorch#23088) (pytorch#23088)"
This reverts commit 2ace94d.
1 parent ad434a3 commit 645387d

7 files changed

Lines changed: 48 additions & 779 deletions

File tree

‎extension/pybindings/README.md‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,8 @@ CMAKE_ARGS="-DEXECUTORCH_BUILD_VULKAN=ON" ./install_executorch.sh
2828
## Classes
2929
### ExecuTorchModule
3030
- `plan_execute()`: Plan and execute.
31-
- `run_method()`: Run a method with either PyTorch tensors or objects that
32-
implement Python's buffer protocol, such as NumPy arrays. A call must use a
33-
single tensor protocol; PyTorch tensors and buffers cannot be mixed.
34-
- `forward()`: Forward. A single buffer may be passed directly; multiple
35-
inputs are passed as a flat sequence.
31+
- `run_method()`: Run method.
32+
- `forward()`: Forward. This takes a pytree-flattend PyTorch-tensor-based input.
3633
- `has_etdump()`: Check if etdump is available.
3734
- `write_etdump_result_to_file()`: Write etdump result to a file.
3835
- `__call__()`: Call method.

0 commit comments

Comments
 (0)