Enable JIT clamp_position and resolve_future_token_ids on ROCm (#21116)

This commit is contained in:
Lianmin Zheng
2026-03-22 22:33:54 -07:00
committed by GitHub
parent 32a85ef128
commit 7050011dee
4 changed files with 5 additions and 16 deletions

View File

@@ -29,7 +29,7 @@ struct ClampPosition {
SymbolicSize N = {"num_elements"};
SymbolicDevice device_;
device_.set_options<kDLCUDA>();
device_.set_options<kDLCUDA, kDLROCM>();
TensorMatcher({N}) //
.with_dtype<T>()

View File

@@ -34,7 +34,7 @@ struct ResolveFutureTokenIds {
SymbolicSize N = {"num_tokens"};
SymbolicSize M = {"map_size"};
SymbolicDevice device_;
device_.set_options<kDLCUDA>();
device_.set_options<kDLCUDA, kDLROCM>();
TensorMatcher({N}).with_dtype<T>().with_device(device_).verify(input_ids);