Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

match pybind with pytorch core and remove inductor test #308

Open
wants to merge 1 commit into
base: gh/PaliC/99/base
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions multipy/runtime/test_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,17 +47,17 @@ def fn(x, y):
c_fn = torch.compile(fn, backend="ofi")
c_fn(torch.randn(10), torch.randn(10))

def test_torchdynamo_inductor(self):
# def test_torchdynamo_inductor(self):

torch._dynamo.reset()
# torch._dynamo.reset()

def fn(x, y):
a = torch.cos(x)
b = torch.sin(y)
return a + b
# def fn(x, y):
# a = torch.cos(x)
# b = torch.sin(y)
# return a + b

c_fn = torch.compile(fn)
c_fn(torch.randn(10), torch.randn(10))
# c_fn = torch.compile(fn)
# c_fn(torch.randn(10), torch.randn(10))


if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion multipy/runtime/third-party/pybind11
Submodule pybind11 updated 68 files
+2 −0 .clang-tidy
+24 −0 .codespell-ignore-lines
+41 −28 .github/workflows/ci.yml
+1 −1 .github/workflows/configure.yml
+2 −2 .github/workflows/pip.yml
+2 −2 .github/workflows/upstream.yml
+23 −12 .pre-commit-config.yaml
+19 −0 CMakeLists.txt
+2 −2 docs/advanced/cast/custom.rst
+3 −3 docs/advanced/cast/stl.rst
+2 −2 docs/advanced/classes.rst
+33 −7 docs/advanced/misc.rst
+2 −2 docs/advanced/pycpp/numpy.rst
+1 −1 docs/advanced/smart_ptrs.rst
+142 −0 docs/changelog.rst
+6 −8 include/pybind11/cast.h
+21 −28 include/pybind11/detail/class.h
+31 −12 include/pybind11/detail/common.h
+24 −3 include/pybind11/detail/internals.h
+5 −0 include/pybind11/eigen.h
+2 −0 include/pybind11/embed.h
+1 −1 include/pybind11/functional.h
+50 −13 include/pybind11/gil.h
+11 −4 include/pybind11/numpy.h
+1 −0 include/pybind11/operators.h
+13 −19 include/pybind11/pybind11.h
+120 −45 include/pybind11/pytypes.h
+31 −10 include/pybind11/stl.h
+14 −4 noxfile.py
+2 −1 pybind11/__init__.py
+8 −1 pybind11/__main__.py
+1 −1 pybind11/_version.py
+12 −0 pybind11/commands.py
+1 −1 setup.cfg
+1 −0 setup.py
+1 −0 tests/conftest.py
+1 −1 tests/constructor_stats.h
+65 −2 tests/cross_module_gil_utils.cpp
+68 −58 tests/extra_python_package/test_files.py
+6 −0 tests/pybind11_tests.cpp
+7 −2 tests/test_builtin_casters.cpp
+39 −1 tests/test_class.cpp
+9 −0 tests/test_class.py
+7 −7 tests/test_custom_type_casters.cpp
+34 −5 tests/test_eigen.cpp
+46 −37 tests/test_eigen.py
+18 −0 tests/test_embed/catch.cpp
+7 −1 tests/test_embed/test_interpreter.cpp
+10 −5 tests/test_exceptions.cpp
+22 −2 tests/test_exceptions.py
+102 −5 tests/test_gil_scoped.cpp
+189 −38 tests/test_gil_scoped.py
+10 −1 tests/test_kwargs_and_defaults.cpp
+54 −1 tests/test_pytypes.cpp
+138 −0 tests/test_pytypes.py
+19 −0 tests/test_sequences_and_iterators.cpp
+8 −0 tests/test_sequences_and_iterators.py
+2 −2 tests/test_smart_ptr.cpp
+14 −8 tests/test_stl.cpp
+2 −2 tests/test_tagbased_polymorphic.cpp
+5 −1 tools/FindPythonLibsNew.cmake
+23 −0 tools/JoinPaths.cmake
+35 −0 tools/codespell_ignore_lines_from_errors.py
+7 −0 tools/pybind11.pc.in
+3 −1 tools/pybind11NewTools.cmake
+11 −5 tools/pybind11Tools.cmake
+2 −0 tools/setup_global.py.in
+2 −0 tools/setup_main.py.in