From c21c3b0befeb46a51b6bf3758ffa30813bea0ff0 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sat, 9 Mar 2024 14:19:22 +0100 Subject: Adding upstream version 1.44.3. Signed-off-by: Daniel Baumann --- ml/dlib/tools/visual_studio_natvis/README.txt | 12 ++++++ ml/dlib/tools/visual_studio_natvis/dlib.natvis | 51 ++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 ml/dlib/tools/visual_studio_natvis/README.txt create mode 100644 ml/dlib/tools/visual_studio_natvis/dlib.natvis (limited to 'ml/dlib/tools/visual_studio_natvis') diff --git a/ml/dlib/tools/visual_studio_natvis/README.txt b/ml/dlib/tools/visual_studio_natvis/README.txt new file mode 100644 index 000000000..f766ac0c1 --- /dev/null +++ b/ml/dlib/tools/visual_studio_natvis/README.txt @@ -0,0 +1,12 @@ +Hi Davis, +thanks for your work on dlib! + +I have created a natvis file to have nicer debugger visualization of dlib matrices in Visual Studio (2012 - …) and I just wanted to share it with you. + +To test it, copy the file into you folder %USERPROFILE%\My Documents\Visual Studio 2015\Visualizers or %VSINSTALLDIR%\Common7\Packages\Debugger\Visualizers as described here https://msdn.microsoft.com/en-us/library/jj620914.aspx + +It’s certainly extendable, especially to include it into image watch, but currently it may help users to debug much faster. + +Feel free to share it. +Best, + Johannes Huber diff --git a/ml/dlib/tools/visual_studio_natvis/dlib.natvis b/ml/dlib/tools/visual_studio_natvis/dlib.natvis new file mode 100644 index 000000000..0c1c52060 --- /dev/null +++ b/ml/dlib/tools/visual_studio_natvis/dlib.natvis @@ -0,0 +1,51 @@ + + + + + + + + + {{ size= <{$T2}> x <{$T3}> }} + + + $T2 * $T3 + ($T1*)data.data + + + + + + + {{ size={data.nr_} x <{$T2}> }} + + + data.nr_ * $T2 + ($T1*)data.data + + + + + + + {{ size= <{$T2}> x {data.nc_} }} + + + $T2 * data.nc_ + ($T1*)data.data + + + + + + + {{ size= {data.nc_} x {data.nc_} }} + + + data.nr_*data.nc_ + ($T1*)data.data + + + + + \ No newline at end of file -- cgit v1.2.3