def __open_tensor_view(self, index, text):
    tensor_item = self.tensor_watch_list[index]
    tensor_item.pyqt_window_id = self.pyqt_env.get_free_identity()
    if (text == '2-DIM'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorView2D, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = '2-DIM'
    elif (text == '1-DIM'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorView1D, {'data_source': tensor_item.data_source, 'name': tensor_item.name})
        self.tensor_watch_list[index].picDIM = '1-DIM'
    elif (text == 'Activation'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorViewAct, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = 'Activation'
    elif (text == 'Filter'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorViewFilter, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = 'Filter'
def __open_tensor_view(self, index, text):
    tensor_item = self.tensor_watch_list[index]
    tensor_item.pyqt_window_id = self.pyqt_env.get_free_identity()
    if (text == '2-DIM'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorView2D, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = '2-DIM'
    elif (text == '1-DIM'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorView1D, {'data_source': tensor_item.data_source, 'name': tensor_item.name})
        self.tensor_watch_list[index].picDIM = '1-DIM'
    elif (text == 'Activation'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorViewAct, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = 'Activation'
    elif (text == 'Filter'):
        self.pyqt_env.create_window(tensor_item.pyqt_window_id, TensorViewFilter, {'data_source': tensor_item.data_source, 'name': tensor_item.name, 'shape': tensor_item.shape_str, 'reshape': tensor_item.reshape})
        self.tensor_watch_list[index].picDIM = 'Filter'