MCPcopy Create free account
hub / github.com/CVCUDA/CV-CUDA / RunGuard

Function RunGuard

python/mod_cvcuda/operators/OpHQResize.cpp:392–400  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

390
391template<typename Op, typename Src, typename Dst, typename Call>
392auto RunGuard(Op &op, Src &src, Dst &dst, Stream &stream, Call &&call)
393{
394 ResourceGuard guard(stream);
395 guard.add(LockMode::LOCK_MODE_READ, {src});
396 guard.add(LockMode::LOCK_MODE_WRITE, {dst});
397 guard.add(LockMode::LOCK_MODE_NONE, {*op});
398
399 call();
400}
401
402auto CreatePyOpHQResize()
403{

Callers 3

TensorHQResizeIntoFunction · 0.85
VarShapeHQResizeIntoFunction · 0.85
TensorBatchHQResizeIntoFunction · 0.85

Calls 1

addMethod · 0.45

Tested by

no test coverage detected