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
import torch
import coremltools as ct
# init maxpool module
torch_model = torch.nn.Conv2d(3, 3, 1, 1)
# Trace with random data
example_input = torch.rand(1, 3, 224, 224)
trace_model = torch.jit.trace(torch_model, example_input).eval()
# Convert to Core ML using the Unified Conversion API
model = ct.convert(
trace_model,
inputs=[ct.ImageType(name="input", shape=example_input.shape)],
)
System environment (please complete the following information):
coremltools version (e.g., 3.0b5): 4.1
OS (e.g., MacOS, Linux): Ubuntu20.04 LTS
How you install python (anaconda, virtualenv, system): miniconda
python version (e.g. 3.7): 3.8.5
any other relevant information:
pytorch version: 1.9.0
gpu: GeForce GTX 1650
driver: Driver Version: 460.80
CUDA: CUDA Version: 11.2
The text was updated successfully, but these errors were encountered:
🐞Describe the bug
I got this error when convert coremlmodel in numpy >= 1.20
Trace
To Reproduce
System environment (please complete the following information):
The text was updated successfully, but these errors were encountered: