← Back to team overview

commonsense team mailing list archive

[Bug 403129] [NEW] Slicing a labeled view with a non-present index returns a scalar

 

Public bug reported:

In [9]: tags()[test_set[0],:]
Out[9]: <LabeledView of <DictTensor shape: (105,); 1 items>, keys like: (u'game',)>

In [10]: tags()[test_set[1],:]
Out[10]: 0.0

Should make a LabeledView of a DictTensor with 0 items but correct
shape.

** Affects: divisi
     Importance: Undecided
         Status: New

-- 
Slicing a labeled view with a non-present index returns a scalar
https://bugs.launchpad.net/bugs/403129
You received this bug notification because you are a member of
Commonsense Computing, which is the registrant for Divisi.

Status in Divisi: New

Bug description:
In [9]: tags()[test_set[0],:]
Out[9]: <LabeledView of <DictTensor shape: (105,); 1 items>, keys like: (u'game',)>

In [10]: tags()[test_set[1],:]
Out[10]: 0.0

Should make a LabeledView of a DictTensor with 0 items but correct shape.



Follow ups

References