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 f3baadd
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', 'False').lower() == 'true':
weight = weight.data.t().contiguous()
return weight, bias

Expand Down

0 comments on commit f3baadd

Please sign in to comment.