| 76 | // InternalType is int64 only when using HashCrosser. |
| 77 | template <> |
| 78 | int64 SparseTensorColumn<int64>::Feature(int64 batch, int64 n) const { |
| 79 | const int64 start = feature_start_indices_[batch]; |
| 80 | if (DT_STRING == values_.dtype()) |
| 81 | return Fingerprint64(values_.vec<tstring>().data()[start + n]); |
| 82 | return values_.vec<int64>().data()[start + n]; |
| 83 | } |
| 84 | |
| 85 | // InternalType is string or StringPiece when using StringCrosser. |
| 86 | template <> |