Merge pull request #1406 from cuicheng01/release/2.3

【cherry-pick】update vision_transformer.py
This commit is contained in:
cuicheng01 2021-11-05 11:09:33 +08:00 committed by GitHub
commit 4428868ea7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -12,6 +12,8 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# Code was based on https://github.com/rwightman/pytorch-image-models/blob/master/timm/models/vision_transformer.py
from collections.abc import Callable
import numpy as np