INNER CODE UNIT · Python

__len__

OpenMeshLab/MeshXL · datasets/dummy_dataset.py:13

    def __len__(self):
        return 10
    
    def __getitem__(self, idx): 
        data_dict = {}
        data_dict['shape_idx'] = np.asarray(idx).astype(np.int64)
        return data_dict

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…