Skip to content

Commit

Permalink
rename env variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
Reinerzhou committed Nov 29, 2024
1 parent b49d6b6 commit c836242
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lmdeploy/pytorch/backends/dlinfer/linear.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def update_weights(self,
weight: torch.Tensor,
bias: Optional[torch.Tensor] = None):
"""update weights."""
if os.getenv('TORCH_MACA_NN_LAYOUT', 'False').lower() == 'true':
if os.getenv('DLINER_LINEAR_USE_NN_LAYOUT', '0') == '1':
weight = weight.data.t().contiguous()
return weight, bias

Expand Down

0 comments on commit c836242

Please sign in to comment.