harvardnlp / namedtensor

Named Tensor implementation for Torch
http://nlp.seas.harvard.edu/NamedTensor
MIT License
443 stars 42 forks source link

fix namedfield for tuples #69

Closed justinchiu closed 5 years ago

justinchiu commented 5 years ago

use isinstance instead of is operator