Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ROCm/AMDMIGraphX
/ copy_tensor
Function
copy_tensor
examples/diffusion/python_stable_diffusion_xl/txt2img.py:307–308 ·
view source on GitHub ↗
(tensor, data)
Source
from the content-addressed store, hash-verified
305
306
307
def
copy_tensor(tensor, data):
308
tensor.copy_(data.to(tensor.dtype))
309
310
311
def
run_model_sync(model, args):
Callers
4
_create_embedding
Method · 0.85
denoise_step
Method · 0.85
decode
Method · 0.85
warmup
Method · 0.85
Calls
1
to
Method · 0.80
Tested by
no test coverage detected