Search found 156 matches

by v923z
Fri Mar 05, 2021 7:52 am
Forum: Development of MicroPython
Topic: Tensorflow and about contributing
Replies: 17
Views: 2468

Re: Tensorflow and about contributing

I'm integrating with ulab now for numpy support but at the moment not enough operations are supported to run the mfcc.py files available publicly so instead I'm wrapping the c/c++ microfrontend library within the tensorflow library. You can fix this here: https://github.com/v923z/micropython-ulab/i...
by v923z
Mon Feb 08, 2021 5:41 pm
Forum: Development of MicroPython
Topic: How to use mathematical functions
Replies: 7
Views: 330

Re: How to use mathematical functions

This library can only be compiled for some stm32 cards. I think this is not true. Here are a couple of counter-examples: https://github.com/v923z/micropython-ulab/#firmware https://gitlab.com/rcolistete/micropython-samples/-/tree/master/ESP8266/Firmware https://gitlab.com/rcolistete/micropython-sam...
by v923z
Sun Feb 07, 2021 4:51 pm
Forum: Development of MicroPython
Topic: How to use mathematical functions
Replies: 7
Views: 330

Re: How to use mathematical functions

I would like to add to my C file some mathematical functions ( like 'sqrt' to calculate the standard deviation that it's equal to sqrt(variance) ) Pretty much everything you can think of is already implemented in ulab: https://github.com/v923z/micropython-ulab/. You can also directly pipe data into...
by v923z
Mon Aug 17, 2020 8:59 am
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 1633

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

To add to this I created builds with and without MICROPY_PY_REVERSE_SPECIAL_METHODS for Pyboard D SF6W and for ESP8266. On each platform I verified that the reverse special methods only work with the appropriate build. I then tried to figure out exactly what resource is being conserved by disabling...
by v923z
Sun Aug 16, 2020 3:35 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 1633

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

That's a very good point. It calls into question whether there is much merit in MicroPython supporting only this subset. In micropython, you are usually not faced with this problem: I believe, there is only one case, where two operands are of different kind, namely, when a string is multiplied by a...
by v923z
Sat Aug 15, 2020 4:32 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 1633

Re: Reverse special methods and numeric classes

Thinking about this some more, the absence of these special methods is problematic, especially __rtruediv__ . If you have a class Foo representing some numeric type, you might ask users to put other types on the RHS: f = Foo() g = f + 4 # uses normal special method h = 3 - f # Ask users to avoid th...
by v923z
Sat Aug 15, 2020 4:29 pm
Forum: Development of MicroPython
Topic: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?
Replies: 16
Views: 1633

Re: MicroPython firmwares with "'MICROPY_PY_REVERSE_SPECIAL_METHODS'" enabled ?

... when the firmware size doesn't fit the firmware partition. This problem can be helped in a number of ways. 1. In ulab, you can exclude sub-modules. There are some that are somewhat obscure (e.g., approx, or filter, or compare), and might not hold general appeal. They are there, but it doesn't m...
by v923z
Fri Aug 07, 2020 4:04 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 20615

Re: ulab, or what you will - numpy on bare metal

rcolistete wrote:
Fri Aug 07, 2020 3:35 pm
Some news :
- my new MicroPython Firmwares repository, where currently there are 60 firmware files with ulab (v0.54.0 or v0.54.2)
Thanks! I have updated the link.
by v923z
Fri Aug 07, 2020 2:36 pm
Forum: ESP32 boards
Topic: ESP32 firmwares with single/double precision and ulab module
Replies: 5
Views: 895

Re: ESP32 firmwares with single/double precision and ulab module

I just meant that the firmware files should have a distinct repository. I don't care, if you mix different types of firmware there. Done, all of my MicroPython built firmwares in one dedicated repository : https://gitlab.com/rcolistete/micropython-firmwares/ OK, thanks! I will update the link on my...
by v923z
Mon Aug 03, 2020 6:46 pm
Forum: Development of MicroPython
Topic: ulab, or what you will - numpy on bare metal
Replies: 106
Views: 20615

Re: ulab, or what you will - numpy on bare metal

rcolistete wrote:
Mon Aug 03, 2020 6:08 pm
Yeah, I was planning some days between firmware releases. I'll try to submmit 'linalg.cross()' and 'linalg.norm()' with more features during this wees.
Well, actually I managed to merge this now: https://github.com/v923z/micropython-ulab/pull/165