You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When calling torch.utils.mobile_optimizer.optimize_for_mobile, an internal assert fails:
0INTERNAL ASSERT FAILED at "../torch/csrc/jit/ir/alias_analysis.cpp":532, please report a bug to PyTorch. We don't have an op for prepacked::conv2d_clamp_prepack but it isn't a special case. Argument types: Tensor, Tensor, int[], str, int[], int, NoneType, NoneType,
To Reproduce
Steps to reproduce the behavior:
Created convolutional model (gapnet plus linear -> sigmoid head). Resulting structure as output by pytorch:
Note: TensorflowSamePadForConv2D modules just apply a pre-calculated F.pad() operation to their input and return. GapSmall's output gets averaged over spatial dimensions.
Expected behavior
scripted module compiles normally.
Environment
PyTorch Version (e.g., 1.0): 1.9.1+cu102
OS (e.g., Linux): Ubuntu 20.04 (WSL)
How you installed PyTorch (conda, pip, source): pip
Build command you used (if compiling from source):
Python version: 3.8.7
CUDA/cuDNN version: n/a
GPU models and configuration: n/a
Any other relevant information:
Additional context
The text was updated successfully, but these errors were encountered:
馃悰 Bug
When calling torch.utils.mobile_optimizer.optimize_for_mobile, an internal assert fails:
To Reproduce
Steps to reproduce the behavior:
Created convolutional model (gapnet plus linear -> sigmoid head). Resulting structure as output by pytorch:
Note: TensorflowSamePadForConv2D modules just apply a pre-calculated F.pad() operation to their input and return. GapSmall's output gets averaged over spatial dimensions.
Expected behavior
scripted module compiles normally.
Environment
conda
,pip
, source): pipAdditional context
The text was updated successfully, but these errors were encountered: