Skip to content

运行colab里的配置出错ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject #924

Open
@redstoneleo

Description

@redstoneleo

在colab里的配置在Import Packages运行后出现

ValueError                                Traceback (most recent call last)
[<ipython-input-9-2c663eac4724>](https://localhost:8080/#) in <cell line: 0>()
      1 import torch
      2 
----> 3 torch._dynamo.config.cache_size_limit = 64
      4 torch._dynamo.config.suppress_errors = True
      5 torch.set_float32_matmul_precision("high")

15 frames
[/usr/local/lib/python3.11/dist-packages/numpy/random/_pickle.py](https://localhost:8080/#) in <module>
----> 1 from .mtrand import RandomState
      2 from ._philox import Philox
      3 from ._pcg64 import PCG64, PCG64DXSM
      4 from ._sfc64 import SFC64
      5 

numpy/random/mtrand.pyx in init numpy.random.mtrand()

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions