From 6efbed4807857b2b68a4ba90a043f8dd92f33c37 Mon Sep 17 00:00:00 2001 From: Lakshmi Kumar Date: Mon, 26 Feb 2024 23:29:35 -0800 Subject: [PATCH] PyBind - removing undefined functions (#107) --- rocAL_pybind/amd/rocal/pipeline.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/rocAL_pybind/amd/rocal/pipeline.py b/rocAL_pybind/amd/rocal/pipeline.py index 506c7b969..86aeb9114 100644 --- a/rocAL_pybind/amd/rocal/pipeline.py +++ b/rocAL_pybind/amd/rocal/pipeline.py @@ -26,7 +26,7 @@ import rocal_pybind as b import amd.rocal.types as types import numpy as np -import cupy as cp +#import cupy as cp import ctypes import functools import inspect @@ -153,6 +153,8 @@ def copyToExternalTensor(self, array, multiplier, offset, reverse_channels, ten b.rocalToTensor(self._handle, ctypes.c_void_p(array.data_ptr()), tensor_format, tensor_dtype, multiplier[0], multiplier[1], multiplier[2], offset[0], offset[1], offset[2], (1 if reverse_channels else 0), self._output_memory_type, max_roi_height, max_roi_width) + """ + NOTE: getOneHotEncodedLabels is not defined. This function does not have a cpp equivalent. Bring back once cupy/fucntion is fixed def get_one_hot_encoded_labels(self, array, device): if device == "cpu": if (isinstance(array, np.ndarray)): @@ -166,7 +168,7 @@ def get_one_hot_encoded_labels(self, array, device): self._handle, array.data.ptr, self._num_classes, 1) else: # torch tensor return b.getOneHotEncodedLabels(self._handle, ctypes.c_void_p(array.data_ptr()), self._num_classes, 1) - + """ def set_outputs(self, *output_list): b.setOutputs(self._handle, len(output_list), output_list)