def __close_tensor_view(self, index):
    tensor_item = self.tensor_watch_list[index]
    if (tensor_item.pyqt_window_id is not None):
        self.pyqt_env.close(tensor_item.pyqt_window_id)
        tensor_item.pyqt_window_id = None
def __close_tensor_view(self, index):
    tensor_item = self.tensor_watch_list[index]
    if (tensor_item.pyqt_window_id is not None):
        self.pyqt_env.close(tensor_item.pyqt_window_id)
        tensor_item.pyqt_window_id = None