mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-10 13:30:19 +00:00
fixed jit default setting (#154)
This commit is contained in:
@@ -3,8 +3,11 @@ import torch
|
||||
JIT_OPTIONS_SET = False
|
||||
|
||||
|
||||
def _set_jit_fusion_options():
|
||||
"""Set PyTorch JIT layer fusion options."""
|
||||
def set_jit_fusion_options():
|
||||
"""Set PyTorch JIT layer fusion options.
|
||||
"""
|
||||
# LSG: the latest pytorch and CUDA versions may not support
|
||||
# the following jit settings
|
||||
global JIT_OPTIONS_SET
|
||||
if JIT_OPTIONS_SET == False:
|
||||
# flags required to enable jit fusion kernels
|
||||
|
Reference in New Issue
Block a user