Traceback (most recent call last):


 "/home/niboshi/t/a.py", line 12, in <module>

f(x, y)


 "cupy/core/_kernel.pyx", line 531, in cupy.core._kernel.ElementwiseKernel.__call__


 "cupy/core/_kernel.pyx", line 578, in cupy.core._kernel.ElementwiseKernel._decide_params_type


 "cupy/core/_kernel.pyx", line 290, in cupy.core._kernel._decide_params_type_core
KeyError: 'U'

Traceback (most recent call last):



 "<ipython-input-38-871a3e57d1ad>", line 1, in <module>

area = seg_db[imname].attrs['area']



 "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper



 "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper



 "/anaconda3/lib/python3.6/site-packages/h5py/_hl/attrs.py", line 60, in __getitem__

attr = h5a.open(self._id, self._e(name))



 "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper



 "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper



 "h5py/h5a.pyx", line 77, in h5py.h5a.open

KeyError: "Can't open attribute (can't locate attribute: 'area')"