Skip to content

RuntimeError: from_dlpack received an invalid capsule. #12221

@tassosblackg

Description

@tassosblackg

How to reproduce the behaviour

 import spacy
 nlp = spacy.load('en_core_web_trf')
 tokens1 = nlp("My string")

Your Environment

  • Operating System: Ubuntu 20.04 LTS
  • Python Version Used: Python 3.8.10
  • spaCy Version Used: 3.5.0
  • Environment Information:

Full Error:

RuntimeError: from_dlpack received an invalid capsule. Note that DLTensor capsules can be consumed only once, so you might have already constructed a tensor from it once.

Metadata

Metadata

Assignees

No one assigned

    Labels

    third-partyThird-party packages and services🔮 thincspaCy's machine learning library Thinc

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions