mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
[Mosaic TPU][NFC] Remove unused toArrayRef
for std::array
It's unused, buggy (will return a reference to local copy of array) and `ArrayRef` already has a ctor that takes a `std::array` PiperOrigin-RevId: 654916697
This commit is contained in:
parent
786408e995
commit
bf42564172
@ -74,10 +74,6 @@ template <typename T>
|
||||
ArrayRef<std::remove_const_t<T>> toArrayRef(absl::Span<T> span) {
|
||||
return ArrayRef<std::remove_const_t<T>>(span.data(), span.size());
|
||||
}
|
||||
template <typename T, std::size_t N>
|
||||
ArrayRef<std::remove_const_t<T>> toArrayRef(std::array<T, N> array) {
|
||||
return ArrayRef<std::remove_const_t<T>>(array.data(), array.size());
|
||||
}
|
||||
|
||||
inline arith::ConstantOp IdxConst(int64_t idx, OpBuilder &builder,
|
||||
Location loc) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user