Skip To Main Content
Support Knowledge Base

Error: "Gather Parameter Axis Out of the Tensor Rank Range [-1, 0]" When Loading New Intermediate Representation (IR)

Content Type: Error Messages   |   Article ID: 000098299   |   Last Reviewed: 05/27/2025

Description

  1. Converted PyTorch model into IR and ran inference successfully.
  2. Trained PyTorch model on Google Colab and converted the model into IR.
  3. Replaced the pre-trained XML file with a new XML file only.
  4. Encountered error when loading new IR file:
    Gather Parameter axis out of the tensor rank range [-1, 0].

Resolution

  • Remove old IR files before converting a model into IR.
  • Replace old XML and BIN files with new XML and BIN files.

Related Products

This article applies to 1 products.