0

Is the module trax.fastmath of TRAX package deprecated? I am using this module, but ModuleNotFoundError is returned.

Progman
  • 16,827
  • 6
  • 33
  • 48
Nanda
  • 361
  • 1
  • 5
  • 14
  • Are you sure you installed the package correctly? [The package is imported in `__init__.py`](https://github.com/google/trax/blob/master/trax/__init__.py#L19), so you should be able to import it in your workspace – crissal Mar 07 '21 at 08:46
  • I have used from trax.fastmath import numpy as fastnp. Is this right? Or, am I missing something? – Nanda Mar 07 '21 at 08:48
  • Do you have `numpy` installed? The `trax` documentation seems to indicate it is a dependency. – BoarGules Mar 07 '21 at 08:49
  • Yes, I do have numpy installed correctly. I am wondering what the source of error could be. Really bemusing. – Nanda Mar 07 '21 at 08:50
  • One quick question: I simply used "pip install trax" which installed version Trax 1.3.7. Am I doing it right? – Nanda Mar 07 '21 at 08:56
  • Dependencies should be installed as well. Can you import trax itself? – crissal Mar 07 '21 at 09:36
  • Hi all, I replaced trax.fastmath with trax.math and it worked perfectly. It's a bit crazy, but this has not been updated in the Trax documentation. – Nanda Mar 07 '21 at 10:44

1 Answers1

0

I replaced trax.fastmath with trax.math and things worked perfectly fine. I am still not sure if this has been updated in the Trax documentation.

Nanda
  • 361
  • 1
  • 5
  • 14