# ONNX023: external-tensor-outside-model-dir **Code:** `ONNX023` **Name:** `external-tensor-outside-model-dir` **Severity:** error **Category:** spec **Target:** value **Fixable:** No ## Message External tensor path points outside the model directory. ## Suggestion Move the tensor data file inside the model directory. ## Details External tensor paths must not escape the model's directory (e.g. using "../"). This ensures the model is self-contained and portable.