[Rust] Rename mem-cache to sglang-radix-tree (#37290)

This commit is contained in:
Jialin Ouyang
2026-09-01 03:03:44 -07:00
committed by GitHub
parent c16a8fc899
commit a77283fb02
30 changed files with 38 additions and 38 deletions
@@ -0,0 +1,15 @@
#pragma once
#include <stdexcept>
#include <torch/version.h>
#if TORCH_VERSION_MAJOR > 2 || \
(TORCH_VERSION_MAJOR == 2 && TORCH_VERSION_MINOR >= 13)
// Keep tch 0.24's removed alignment wrappers as explicit runtime errors.
#define align_as(...) \
alias(); \
throw std::runtime_error("align_as is unavailable in PyTorch 2.13+")
#define align_tensors(...) \
autograd::variable_list{}; \
throw std::runtime_error("align_tensors is unavailable in PyTorch 2.13+")
#endif