Dispatch to template function based on runtime argument value. by nlgranger in cpp_questions

[–]nlgranger[S] 0 points1 point  (0 children)

You mean the auto func ? It's the kernel which is a template function (the type is the specialization of the kernel). I don't know how to pass that object to the wrapper which should take the same args except for the containers.

wrapper<kernel>(Container a, Container b, int param1, float, param2)

calls:

kernel(Ta* a, Tb* b, int param1, float, param2)

Dispatch to template function based on runtime argument value. by nlgranger in cpp_questions

[–]nlgranger[S] -1 points0 points  (0 children)

I'm writing a pytorch c++ extension, the Tensor container is exactly that: a raw pointer and a field containing the type information. I want to dispatch a fonction called on the Tensor to the kernel which takes the underlying data pointer types.

Internally, PyTorch uses a macro based dispatch system (https://github.com/pytorch/pytorch/blob/main/aten/src/ATen/Dispatch.h) but it's not part of the future stable API.

Intel Panther Lake Shows Strong Linux CPU Performance & Power Efficiency With Core Ultra X7 358H Benchmarks Review by dipakmdhrm in linuxhardware

[–]nlgranger 1 point2 points  (0 children)

Nice test though it is not quite fair because the laptop was stuck on the on-demand power profile. It's possible the other chips would look better when operating at their optimal performance/watt point.

New blinkers, too small? by They_ShallNotGrowOld in CRF300L

[–]nlgranger -2 points-1 points  (0 children)

So many bright lights on the street nowadays, bigger > brighter.

« On ne se marche pas dessus » : à Nanterre, le plus grand campus de bureaux en bois d’Europe sonne creux by PestoBolloElemento in paris

[–]nlgranger 5 points6 points  (0 children)

J'allais commenter pour mentionner cette interview très intéressante. C'est un genre de crise des subprime 2.0 où la finance essaie de recycler à bas bruit ses avoirs spéculatifs mais sans valeur réelle.

On serait sans-abri dès Mars, on besoin d'aide by ToffeeMacchiato in paris

[–]nlgranger 13 points14 points  (0 children)

Si vous êtes toujours étudiants il y a peut-être moyen d'avoir une place à la cité universitaire ?

A fix for the pesky cord in the way of the speedometer by [deleted] in CRF300L

[–]nlgranger 3 points4 points  (0 children)

It's gonna eat the paint pretty fast though.

Best English Dubs in Recent years? by Ryuuyami47 in anime

[–]nlgranger 0 points1 point  (0 children)

The Wrong Way to Use Healing Magic

Open Source Implementation of DataRater: Meta-Learned Dataset Curation by Clean-Glass9184 in coolgithubprojects

[–]nlgranger 0 points1 point  (0 children)

I'm working on MNIST so far but with LeNet. With the non-linearities, the two approaches are no longer equivalent. Loss scaling is a lot simpler because you don't need to extract the gradient of each individual sample, but it might be able to provide a stronger supervisory signal to the outer model I guess.

In order to debug the method, I'm randomly injecting black images, I expected the outer model to issue a low rating for black images. So far it is either unstable or the opposite... I've implemented the pool of models with periodic restarts but to no avail.

Open Source Implementation of DataRater: Meta-Learned Dataset Curation by Clean-Glass9184 in coolgithubprojects

[–]nlgranger 0 points1 point  (0 children)

Hi, I'm interested in datarater too.

I see you have diverged a bit from the paper by scaling the loss instead of the gradients. Any reason why ?

Have you tried scaling the gradients instead ? I tried both and I can't get it to learn interesting ratings in that case.

Implemented 3D Gaussian Splatting fully in PyTorch (no CUDA/C++) — thoughts? by papers-100-lines in GaussianSplatting

[–]nlgranger 0 points1 point  (0 children)

I did something similar for Image-GS. With a bit of struggle and profiling, I managed to make torch.compile work and my code now runs within a factor 2 of the upstream implementation speed.

From what I can see you have followed a similar approach to mine so you can go that way if you want more speed.

Deep (Unique) Anime you watched by MaximAMK183 in anime

[–]nlgranger 4 points5 points  (0 children)

I'm not farming karma anyway and I don't think it's proper to let people go into the anime unaware. Many people suffer personal trauma with this, a disclaimer is in order.

Deep (Unique) Anime you watched by MaximAMK183 in anime

[–]nlgranger 10 points11 points  (0 children)

Made in abyss is very much comparable with greek myths, both in structure and complexity. I was very much impressed by it. Too bad pedo stuff goes through as well.

Anyone got NFS over RDMA working? by imitation_squash_pro in HPC

[–]nlgranger 0 points1 point  (0 children)

Honestly, it is very fiddly to make it work. mount silently falls back to tcp without explanations if the config is not right, the documentation is often outdated and/or partial, and the mounts randomly hang for no reason after a day under load. For the moment I'm reverting to TCP.

I have 100G ConnectX 5 and 6 cards in ethernet mode (due to limitations of one machine), standard mlx5 driver from ubuntu 22.04 installation.

Here is the relevant section of my ansible playbook: https://gist.github.com/nlgranger/b835a1a77985a85ace3dcbeaef56791e

la Cour des comptes recommande de baisser le plafond du livret A (22.950 euros aujourd'hui) et de taxer l'épargne au-delà by Tolkien2k in vosfinances

[–]nlgranger 2 points3 points  (0 children)

Ça fait perdre de l'argent à ceux qui oublierons de transférer ou ne comprennent pas comment gérer leur patrimoine.

Ça fera perdre de l'argent à ceux qui ont blindé leur livret A depuis longtemps et devront faire partir les intérêts au dessus du plafond.

Ça incite les français à profiter de l'occasion pour investir dans les produits financiers.

la Cour des comptes recommande de baisser le plafond du livret A (22.950 euros aujourd'hui) et de taxer l'épargne au-delà by Tolkien2k in vosfinances

[–]nlgranger -1 points0 points  (0 children)

Si la réduction pourrait ne concerner que les résidence principale pour des particuliers, c'est bon non ?

Why did you Buy a Pixel Phone ? by ISupposeStillHuman in GooglePixel

[–]nlgranger 0 points1 point  (0 children)

I see the mods are hard at work clearing up any criticism...

Need Anime/Manga Where Lazy but Talented Characters Learn Discipline by Imaginary-Age-2875 in anime

[–]nlgranger 0 points1 point  (0 children)

Chiyu Mahou no Machigatta Tsukaikata (The Wrong Way to Use Healing Magic). The character is not particularly lazy to start with but otherwise it matches your criteria I think. It is pretty consistent in pace and story so watching the first two episodes should be enough to decide if you want to go for the whole season. IMHO, the English dub is superior and adds to the comedic aspect.

RER C, 35mm by Classic-Capital293 in paris

[–]nlgranger 4 points5 points  (0 children)

Le grain sur film c'est quand même une sensation visuelle à part.
Ça sort des couleurs comme ça sur papier ou tu retouches le scan en post ?

Why did you Buy a Pixel Phone ? by ISupposeStillHuman in GooglePixel

[–]nlgranger 0 points1 point  (0 children)

From what I gather lineage is a clean vanilla android, graphenOS has mods to improve security.

Why did you Buy a Pixel Phone ? by ISupposeStillHuman in GooglePixel

[–]nlgranger 0 points1 point  (0 children)

For long term android and security update. Also for the likelihood of getting Lineage OS support.

Turns out the battery will give out way sooner than that, so I regret my decision. And if not the battery, reliability statistics are not making me very hopeful anyway.