Thomas Germer

Results 142 comments of Thomas Germer

That means your model incompatible. It has to have the same layers.

> What version of torch should be used? The [README](https://github.com/openai/CLIP?tab=readme-ov-file#usage) recommends PyTorch 1.7.1, but a bit older versions are probably fine as well. # Screenshot README ![Image](https://github.com/user-attachments/assets/f0edb1a2-5960-46f8-a7a7-8ad411cfd87f)

Why two pull requests? https://github.com/TheAlgorithms/Python/pull/12009

The workaround does not fix the locale to UTF-8. Instead, it makes the locale incorrect all the time. ```python import cupy as cp import locale import os os.environ["LC_ALL"] = "POSIX"...

I renamed the variables again. I think the code is harder to follow now since the variable names do not match the equations on Wikipedia anymore, but at least the...

If you run `python avl_tree.py` directly, it will crash. This suggests that the tests are insufficient. ``` insert:3 3 ************************************* insert:7 3 * 7 ************************************* insert:1 3 1 7 *************************************...

The tree becomes unbalanced when inserting and deleting the same value multiple times. Here are a few more tests you can use for debugging. Note that the tests are very...

> So what am I supposed is either I maintain a new variable to count and store count of duplicates(also change other functions) or discard duplicate node while inserting them(only...

The following insertion/deletion sequence will result in an unbalanced tree. The height of the left subtree of node 12 is 1, while the height of the right subtree is 3,...

LGTM :+1: (There might be a small issue when inserting the value `NaN`, because comparison with `NaN` is always false, but lets ignore that.)