TPU support for VOLO
See original GitHub issueWhile trying VOLO
with TPU I’m getting this error, any idea how to reolve this?
InvalidArgumentError: 9 root error(s) found.
(0) Invalid argument: {{function_node __inference_train_function_137027}} Compilation failure: Detected unsupported operations when trying to compile graph cluster_train_function_5876961707884240013[] on XLA_TPU_JIT: ExtractImagePatches (No registered 'ExtractImagePatches' OpKernel for XLA_TPU_JIT devices compatible with node {{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}
(OpKernel was found, but attributes didn't match) Requested Attributes: T=DT_INT64, _xla_inferred_shapes=[[1,?,?,9]], ksizes=[1, 3, 3, 1], padding="VALID", rates=[1, 1, 1, 1], strides=[1, 2, 2, 1], _device="/device:TPU_REPLICATED_CORE"){{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}One approach is to outside compile the unsupported ops to run on CPUs by enabling soft placement `tf.config.set_soft_device_placement(True)`. This has a potential performance penalty.
TPU compilation failed
[[tpu_compile_succeeded_assert/_17543318848583046929/_5]]
[[tpu_compile_succeeded_assert/_17543318848583046929/_5/_127]]
(1) Invalid argument: {{function_node __inference_train_function_137027}} Compilation failure: Detected unsupported operations when trying to compile graph cluster_train_function_5876961707884240013[] on XLA_TPU_JIT: ExtractImagePatches (No registered 'ExtractImagePatches' OpKernel for XLA_TPU_JIT devices compatible with node {{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}
(OpKernel was found, but attributes didn't match) Requested Attributes: T=DT_INT64, _xla_inferred_shapes=[[1,?,?,9]], ksizes=[1, 3, 3, 1], padding="VALID", rates=[1, 1, 1, 1], strides=[1, 2, 2, 1], _device="/device:TPU_REPLICATED_CORE"){{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}One approach is to outside compile the unsupported ops to run on CPUs by enabling soft placement `tf.config.set_soft_device_placement(True)`. This has a potential performance penalty.
TPU compilation failed
[[tpu_compile_succeeded_assert/_17543318848583046929/_5]]
[[tpu_compile_succeeded_assert/_17543318848583046929/_5/_103]]
(2) Invalid argument: {{function_node __inference_train_function_137027}} Compilation failure: Detected unsupported operations when trying to compile graph cluster_train_function_5876961707884240013[] on XLA_TPU_JIT: ExtractImagePatches (No registered 'ExtractImagePatches' OpKernel for XLA_TPU_JIT devices compatible with node {{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}
(OpKernel was found, but attributes didn't match) Requested Attributes: T=DT_INT64, _xla_inferred_shapes=[[1,?,?,9]], ksizes=[1, 3, 3, 1], padding="VALID", rates=[1, 1, 1, 1], strides=[1, 2, 2, 1], _device="/device:TPU_REPLICATED_CORE"){{node gradient_tape/model/unfold_matmul_fold_3/ExtractImagePatches}}One approach is to outside compile the unsupported ops to run on CPUs by enabling soft placement `tf.config.set_soft_device_placement(True)`. This has a potential performance penalty.
TPU compilation failed
[[tpu_compile_succeeded_assert/_17543318848583046929 ... [truncated]
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (14 by maintainers)
Top Results From Across the Web
since I can technically use 1 filament for support and ... - Reddit
Yes, it's the Multi 4x filament extension. I suspect the filament path is to long and will struggle with wobbly filament bending. So...
Read more >Shoe Review: Diadora Volo - Fleet Feet
The Volo is a lightweight, cushioned running shoe perfect for daily training, long walks or stepping out on the town.
Read more >PyTorch Image Models - GitHub
My own models: · My own model weight results (all ImageNet-1k training) · cs3 , darknet , and vit_*relpos weights above all trained...
Read more >3D printing solutions & TPU in 3D printing | voxeljet
voxeljet offers some of the best 3D printers for TPU, including support service and expert advice for our customers. What ...
Read more >"volo" 3D Models to Print - Yeggi
89 "volo" 3D Models. Every Day new 3D Models from all over the World. Click to find the best Results for volo Models...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Actually non TPU version using
tf.image.extract_patches
supportsnon-square
images, but my TPU version not. As I’m assuming it’s square here common_layers.py#L189, or it needs more calculation… I’ll try it later if you really need this…Thanks 😃