Giter VIP home page Giter VIP logo

Comments (6)

michalk8 avatar michalk8 commented on August 26, 2024

Ok, will add dtype to __init__ and ensure passed arrays/geometries have that dtype.

from moscot.

Marius1311 avatar Marius1311 commented on August 26, 2024

amazing, thanks!

from moscot.

michalk8 avatar michalk8 commented on August 26, 2024

I've tried 2 implementations:

  1. user does
from jax.config import config
config.update("jax_enable_x64", True)
  • we check and convert to f64 - problem is that all allocations (esp. ones not in our control in sinkhorn) are after the update in f64, which causes a mismatch between sizes.
  1. add option x64: bool = False to fit - this worked better, but it's a stateful operation (I have to write to a config and then NOT revert it for it to work). If previously x64 was disallowed and was temporarily allowed for the computation, we again get some sizing erros (i.e. expected 1600 bytes, got 3200).
    Solution would be to convert back to x32 or to remain stateful and I dislike both (not to mention I don't know what the consequences of modifying the config like this are).

My take: if x64 is desired, use as jax does it in the beginning.

from moscot.

Marius1311 avatar Marius1311 commented on August 26, 2024

Mhm, that doesn't sound very promising, let's further discuss this today. How can I make sure I use float64 for my internal checks? I would like to run some checks.

from moscot.

michalk8 avatar michalk8 commented on August 26, 2024

Mhm, that doesn't sound very promising, let's further discuss this today. How can I make sure I use float64 for my internal checks? I would like to run some checks.

If you didn't use the above import, it should be always float32, otherwise float64.

from moscot.

Marius1311 avatar Marius1311 commented on August 26, 2024

Assuming this is done.

from moscot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.