Comments (3)
I'm getting the same error when running https://github.com/google-research/frame-interpolation on my M2 MBA with torch 2.1.2:
File "\torch\nn\functional.py", line 4244, in grid_sample
align_corners = False
return torch.grid_sampler(input, grid, mode_enum, padding_mode_enum, align_corners)
~~~~~~~~~~~~~~~~~~ <--- HERE
RuntimeError: MPS: Unsupported Border padding mode
from pytorch.
I figured it out. The solution was, before exporting the torchscript model, change the padding mode from 'border' to 'zeros'. Haven't yet seen how this affects the model outputs however.
from pytorch.
I figured it out. The solution was, before exporting the torchscript model, change the padding mode from 'border' to 'zeros'. Haven't yet seen how this affects the model outputs however.
get this error if I change to 'zeros'
File "/Users/workstation/Movies/AFI-ForwardDeduplicate/models/model_pg104/forward_warp2.py", line 173, in sample_one img_warp.put_(ids_mask, torch.masked_select(flat_img*flat_weight, mask), accumulate=True) IndexError: out of range: tried to access index 33423360 on a tensor of 33423360 elements.
from pytorch.
Related Issues (20)
- [BUG][JIT] `torch.jit.script` is not compatible with `DeprecationWarning` and `FutureWarning`
- Fused AdamW maybe should accept lr_dict directly? HOT 1
- Overly demanding PyTorch CLA HOT 1
- UNSTABLE linux-binary-manywheel / manywheel-py3_8-cuda12_1-test / test HOT 2
- UNSTABLE linux-binary-manywheel / manywheel-py3_8-cuda12_4-test / test HOT 2
- I donβt know if itβs a problem with cuda or pytorch HOT 3
- torch.compile (inductor) bug random signed number generation
- [While_loop] How to use layer like `torch.nn.BatchNorm2d` with while_loop? HOT 2
- torch.compile reorder_for_compute_comm_overlap sink_waits pass does not work
- Inductor fails at assert self.symbol_to_source.get(expr) HOT 1
- Add option for custom ops to automatically get a FakeTensor kernel (during static shapes) HOT 1
- DISABLED test_arange2_dynamic_shapes_cuda (__main__.DynamicShapesGPUTests) HOT 1
- DISABLED test_comprehensive_fft_ifft_cuda_float64 (__main__.TestInductorOpInfoCUDA) HOT 1
- ~PyTorch Docathon H1 2024!~
- Dynamo should prune non-live captured variables
- Loading Old Checkpoints with DTensor HOT 2
- `flake8: noqa` disables flake8 linter for the whole file and it's not obvious HOT 2
- torch.export.export() throws out an error when dealing weighttying model.
- [Feature Request] switch amx isa detection in onednn to cpuinfo HOT 1
- DISABLED test_dtensor_op_db_bmm_cpu_float32 (__main__.TestDTensorOpsCPU) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pytorch.