Skip to content

Commit

Permalink
add PARROTS_JIT_OPTION (#816)
Browse files Browse the repository at this point in the history
* code update

* add PARROTS_JIT_OPTION

* rm flow_warp_module

* fix for lint

* small fix
  • Loading branch information
lml131 authored Feb 5, 2021
1 parent 5df759a commit 4a694cc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion mmcv/utils/parrots_jit.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import os

from .parrots_wrapper import TORCH_VERSION

if TORCH_VERSION == 'parrots':
parrots_jit_option = os.getenv('PARROTS_JIT_OPTION')

if TORCH_VERSION == 'parrots' and parrots_jit_option == 'ON':
from parrots.jit import pat as jit
else:

Expand Down

0 comments on commit 4a694cc

Please sign in to comment.