mirror of
https://github.com/immich-app/immich.git
synced 2025-11-29 14:39:48 +09:00
add comment about gross code
This commit is contained in:
@@ -143,6 +143,7 @@ class InferenceModel(ABC):
|
|||||||
inputs = self._get_static_dims(inferred.graph.input)
|
inputs = self._get_static_dims(inferred.graph.input)
|
||||||
outputs = self._get_static_dims(inferred.graph.output)
|
outputs = self._get_static_dims(inferred.graph.output)
|
||||||
|
|
||||||
|
# check_model gets called in update_inputs_outputs_dims and doesn't work for large models
|
||||||
check_model = onnx.checker.check_model
|
check_model = onnx.checker.check_model
|
||||||
try:
|
try:
|
||||||
onnx.checker.check_model = lambda _: None
|
onnx.checker.check_model = lambda _: None
|
||||||
|
|||||||
Reference in New Issue
Block a user