π Geometric Computer Vision Library for Spatial AI
Python artificial-intelligencecomputer-visiondeep-learninghacktoberfestimage-processingmachine-learningneural-networkpythonpytorchroboticsspatial-ai
fix(docs): replace deprecated torch.range with torch.arange (#3381)
Samay Meharde52fdf1473b
diff --git a/docs/generate_examples.py b/docs/generate_examples.pyindex c5b868fba..09b500b80 100644--- a/docs/generate_examples.py+++ b/docs/generate_examples.py@@ -382,7 +382,7 @@ def main():# korna.color.colormapcolormaps_list = {"AUTUMN": (256,)}- bar_img_gray = torch.range(0, 255).repeat(1, 40, 1) # 1x1x40x256+ bar_img_gray = torch.arange(0, 256).repeat(1, 40, 1) # 1x1x40x256bar_img = K.color.grayscale_to_rgb(bar_img_gray)# ITERATE OVER THE COLORMAPSfor colormap_name, args in colormaps_list.items():