Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • bob.learn.mlp bob.learn.mlp
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bob
  • bob.learn.mlpbob.learn.mlp
  • Issues
  • #5
Closed
Open
Created Mar 23, 2015 by André Anjos@andre.anjos💬Owner

bob.learn.mlp.Machine.__repr__ crashes

Created by: siebenkopf

The __repr__ method of bob.learn.mlp.Machine crashes, throughout. Try:

>>> import bob.learn.mlp
>>> m = bob.learn.mlp.Machine((1,1,1))
>>> print (m)

The reason is that the PyBobLearnMLPMachine_Repr method: https://github.com/bioidiap/bob.learn.mlp/blob/master/bob/learn/mlp/machine.cpp#L702 expects the PyBobLearnMLPMachine_getWeights to return a PyBlitzArray_Object*, while it actually returns a tuple: https://github.com/bioidiap/bob.learn.mlp/blob/master/bob/learn/mlp/machine.cpp#L261 Hence, NULL is passed to make_safe, which crashes with a SEGFAULT.

Assignee
Assign to
Time tracking