You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/usr/local/lib/python3.10/dist-packages/tritonshmutils/__init__.py:33: DeprecationWarning: Thepackage`tritonshmutils`isdeprecatedandwillberemovedinafutureversion. Pleaseuseinstead`tritonclient.utils`warnings.warn(
/usr/local/lib/python3.10/dist-packages/tritonshmutils/cuda_shared_memory.py:33: DeprecationWarning: Thepackage`tritonshmutils.cuda_shared_memory`isdeprecatedandwillberemovedinafutureversion. Pleaseuseinstead`tritonclient.utils.cuda_shared_memory`warnings.warn(
/usr/local/lib/python3.10/dist-packages/tritonclient/utils/cuda_shared_memory/__init__.py:45: DeprecationWarning: pkg_resourcesisdeprecatedasanAPI. Seehttps://setuptools.pypa.io/en/latest/pkg_resources.htmlimportpkg_resources/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:3138: DeprecationWarning: Deprecatedcallto`pkg_resources.declare_namespace('zope')`.
Implementingimplicitnamespacepackages (asspecifiedinPEP420) ispreferredto`pkg_resources.declare_namespace`. Seehttps://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesdeclare_namespace(pkg)
/usr/local/lib/python3.10/dist-packages/pkg_resources/__init__.py:3138: DeprecationWarning: Deprecatedcallto`pkg_resources.declare_namespace('zope')`.
Implementingimplicitnamespacepackages (asspecifiedinPEP420) ispreferredto`pkg_resources.declare_namespace`. Seehttps://setuptools.pypa.io/en/latest/references/keywords.html#keyword-namespace-packagesdeclare_namespace(pkg)
---------------------------------------------------------------------------UnboundLocalErrorTraceback (mostrecentcalllast)
CellIn[1], line75data=torch.tensor([1, 2], dtype=torch.float32).cuda()
6dlpack_data=torch.to_dlpack(data)
---->7cshm.set_shared_memory_region_from_dlpack(
8shm_op0_handle, [dlpack_data]
9 )
File/usr/local/lib/python3.10/dist-packages/tritonclient/utils/cuda_shared_memory/__init__.py:348, inset_shared_memory_region_from_dlpack(cuda_shm_handle, input_values)
343stream=_get_or_create_global_cuda_stream(0)
344# Knowing the implementation detail of how shared memory region is345# set (cudaMemcpy). There is no need to transfer ownership of346# 'dl_managed_tensor': the data has been copied out when dlpack347# capsule is out of scope.-->348dlcapsule=_dlpack.get_dlpack_capsule(input_value, stream.getPtr())
349dmt=_dlpack.get_managed_tensor(dlcapsule)
350ifnot_dlpack.is_contiguous_data(
351dmt.dl_tensor.ndim, dmt.dl_tensor.shape, dmt.dl_tensor.strides352 ):
UnboundLocalError: localvariable'stream'referencedbeforeassignment
Version of client:
tritonclient 2.49.0
The text was updated successfully, but these errors were encountered:
Code sample:
Log:
Version of client:
The text was updated successfully, but these errors were encountered: