Unverified Commit 09a6a49e authored by Rui Qiao's avatar Rui Qiao Committed by GitHub
Browse files

[Misc] Avoid "PyTorch non-writable tensors" warning in RayPPCommunicator (#27443)


Signed-off-by: default avatarRui Qiao <ruisearch42@gmail.com>
parent 07447554
......@@ -99,7 +99,7 @@ class RayPPCommunicator(Communicator):
# Ray actor IDs are 32-character hex strings (128 bits)
ACTOR_ID_LEN = 32
actor_id_bytes = actor_id_str.encode("utf-8")
actor_id_bytes = bytearray(actor_id_str.encode("utf-8"))
assert len(actor_id_bytes) == ACTOR_ID_LEN, (
f"Unexpected actor ID length: {len(actor_id_bytes)}"
)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment