Skip to content

Instantly share code, notes, and snippets.

@mlaves
Last active October 1, 2023 08:14
Show Gist options
  • Save mlaves/61bc47956b0da377ccd0eb4a92c28904 to your computer and use it in GitHub Desktop.
Save mlaves/61bc47956b0da377ccd0eb4a92c28904 to your computer and use it in GitHub Desktop.
Example of coremltools segfault on larger input sizes.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Process 1528 launched: '/Users/laves/miniforge3/envs/py310/bin/python' (arm64)
scikit-learn version 1.3.0 is not supported. Minimum required version: 0.17. Maximum required version: 1.1.2. Disabling scikit-learn conversion API.
TensorFlow version 2.13.0 has not been tested with coremltools. You may run into unexpected errors. TensorFlow 2.12.0 is the most recent version that has been tested.
Torch version 2.0.1 has not been tested with coremltools. You may run into unexpected errors. Torch 2.0.0 is the most recent version that has been tested.
2023-10-01 10:13:19.894994+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.895120+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.895168+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.895234+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.895341+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.895551+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.896695+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.901464+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.908130+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE, N5torch3jit20ScalarAttributeValueINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEELNS0_13AttributeKindE6EEE.
2023-10-01 10:13:19.917683+0200 python[1528:19252] dynamic_cast error 2: One or more of the following type_info's has hidden visibility or is defined in more than one translation unit. They should all have public visibility. N5torch3jit14AttributeValueE, N5torch3jit20ScalarAttributeValueIxLNS0_13AttributeKindE4EEE, N5torch3jit20ScalarAttributeValueIxLNS0_13AttributeKindE4EEE.
Converting PyTorch Frontend ==> MIL Ops: 100% 239/240 [00:00<00:00, 5977.04 ops/s]
Running MIL frontend_pytorch pipeline: 100% 5/5 [00:00<00:00, 1876.31 passes/s]
Running MIL default pipeline: 100% 63/63 [00:00<00:00, 669.39 passes/s]
Running MIL backend_neuralnetwork pipeline: 100% 9/9 [00:00<00:00, 2604.08 passes/s]
Translating MIL ==> NeuralNetwork Ops: 100% 251/251 [00:01<00:00, 175.94 ops/s]
Process 1528 stopped
* thread #1, queue = 'com.apple.CoreMLBatchProcessingQueue', stop reason = EXC_BAD_ACCESS (code=2, address=0x2c1000000)
frame #0: 0x000000019842150c Espresso`Espresso::conv3d_kernel_cpu::__launch(std::__1::shared_ptr<Espresso::abstract_batch> const&, Espresso::layer_data&, Espresso::layer_data&) + 1524
Espresso`Espresso::conv3d_kernel_cpu::__launch:
-> 0x19842150c <+1524>: str wzr, [x8, w9, sxtw #2]
0x198421510 <+1528>: add w9, w9, #0x1
0x198421514 <+1532>: subs x10, x10, #0x1
0x198421518 <+1536>: b.ne 0x19842150c ; <+1524>
Target 0: (python) stopped.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment