Tensors inheriting from Tensor fail at math

Bug #406567 reported by Jesse Moeller
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Divisi
New
Low
Unassigned

Bug Description

The overridden math methods defined in Tensor require methods which are only defined in DictTensor and DenseTensor. The Tensor base classes math operators are incomplete and inconsistent (case in point __add__ references Tensor.tensor_iadd, which raises AttributeError)

Revision history for this message
Rob Speer (rspeer) wrote :

Should they just raise a NotImplementedError instead?

Is there a reason you want to have an object that's neither a DictTensor nor a DenseTensor? I'm thinking that the *constructor* should raise a NotImplementedError because it's an abstract class.

Changed in divisi:
importance: Undecided → Low
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.