MCPcopy 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
307def copy_tensor(tensor, data):
308 tensor.copy_(data.to(tensor.dtype))
309
310
311def run_model_sync(model, args):

Callers 4

_create_embeddingMethod · 0.85
denoise_stepMethod · 0.85
decodeMethod · 0.85
warmupMethod · 0.85

Calls 1

toMethod · 0.80

Tested by

no test coverage detected