Skip to content

MaxPooling1D has no CPU implementation

What commit version of aidge do you use

On dev branch:

  • aidge_core: 0.7.0
  • aidge_backend_cpu: 0.7.0
  • aidge_onnx: 0.6.0

Problem description

Expected behavior: Creation of a scheduler and run of an inference for a graph with 3 nodes.

Is this a regression ? No

Please provide logs in the form of a code block

(env_aidge) farges@DESKTOP-IPACP95:/mnt/c/Documents and Settings/farge/Documents/NeuroFuzzyInAidge$ python3 script_fuzzy_disj.py
/home/farges/aidge/env_aidge/lib/python3.12/site-packages/numpy/_core/getlimits.py:551: UserWarning: Signature b'\x00\xd0\xcc\xcc\xcc\xcc\xcc\xcc\xfb\xbf\x00\x00\x00\x00\x00\x00' for <class 'numpy.longdouble'> does not match any known type: falling back to type probe function.
This warnings indicates broken support for the dtype!
  machar = _get_machar(dtype)
Available backends :
{'cpu'}
[[ 1.00000, 1.00000, 0.00000],
 [ 0.00000, 1.00000, 1.00000]]
GraphView(name='fuzzy_disj', Nodes: 3 (inputs: 1, outputs: 2))
Native operators: 3 (3 types)
- MaxPooling1D: 1
- Mul: 1
- Producer: 1
Generic operators: 0 (0 types)
Native types coverage: 100.0% (3/3)
Native operators coverage: 100.0% (3/3)
[ERROR] - Assertion failed: exists(key) in /home/farges/aidge/aidge/aidge_core/include/aidge/utils/Registrar.hpp:79
[FATAL] - missing or invalid registrar key: "cpu" for registrable object
[FATAL]   N5Aidge13MaxPooling_OpILh1EEE
[FATAL]   Did you include/import the corresponding module?
[FATAL]   If so, it is possible that the object is not yet supported.
[FATAL]
[FATAL]   Available registrar keys are:
[FATAL]       export_serialize
Traceback (most recent call last):
  File "/mnt/c/Users/farge/Documents/NeuroFuzzyInAidge/script_fuzzy_disj.py", line 24, in <module>
    fuzzy_disj.compile('cpu', ac.dtype.float64, dims=[[3]])
RuntimeError: missing or invalid registrar key: "cpu" for registrable object N5Aidge13MaxPooling_OpILh1EEE
Did you include/import the corresponding module?
If so, it is possible that the object is not yet supported.

Available registrar keys are:
    export_serialize
(env_aidge) farges@DESKTOP-IPACP95:/mnt/c/Documents and Settings/farge/Documents/NeuroFuzzyInAidge$

Reproducible example code

Python script:

script_fuzzy_disj.py

MaxPooling1D on line 9 was suggested by Aidge after a first attempt with MaxPooling

Edited by Jean-Loup Farges