# ------------------------------------------------------------------ # Copyright (c) 2020 PyInstaller Development Team. # # This file is distributed under the terms of the GNU General Public # License (version 2.0 or later). # # The full license is available in LICENSE, distributed with # this software. # # SPDX-License-Identifier: GPL-2.0-or-later # ------------------------------------------------------------------ # Functions from torchvision.ops.* modules require torchvision._C extension module, which PyInstaller fails to pick up # automatically due to indirect load. hiddenimports = ['torchvision._C'] # Collect source .py files for JIT/torchscript. Requires PyInstaller >= 5.3, no-op in older versions. module_collection_mode = 'pyz+py'