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

Method cuda

python/mod_cvcuda/nvcv/Tensor.cpp:365–372  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

363}
364
365py::object Tensor::cuda() const
366{
367 nvcv::TensorData tensorData = m_impl.exportData();
368
369 // Note: we can't cache the returned ExternalBuffer because it is holding
370 // a reference to us. Doing so would lead to mem leaks.
371 return ToPython(tensorData, py::cast(this->shared_from_this()));
372}
373
374std::ostream &operator<<(std::ostream &out, const Tensor &tensor)
375{

Callers 15

mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
mainFunction · 0.95
tensor_to_imageFunction · 0.95
test_op_histogramFunction · 0.95
test_op_histogram_maskFunction · 0.95

Calls 4

shared_from_thisMethod · 0.95
castFunction · 0.85
ToPythonFunction · 0.70
exportDataMethod · 0.45