Git Product home page Git Product logo

Comments (5)

lmxyy avatar lmxyy commented on August 28, 2024

Hi, could you provide which system and device you are using so that I can figure out what is happening? Also, you could try the example in Colab first. This should work.

from sige.

LonglongaaaGo avatar LonglongaaaGo commented on August 28, 2024

Hi @lmxyy ,
Thanks!
Yes, the Colab runs well.
I run on a PC with 2.90 GHz Intel R CoreTM i7-10700F CPU, 16 GB memory, NVIDIA GeForce RTX 2080 GPU.
The Pytorch version is 1.8

Thank you!

from sige.

lmxyy avatar lmxyy commented on August 28, 2024

Your environment looks good. Could you try this in your python interactive session?
image

from sige.

LonglongaaaGo avatar LonglongaaaGo commented on August 28, 2024

Hi @lmxyy ,
Thank you so much!
I tried and install the siga pip package.

The interactive session results are shown below:
Python 3.7.10 (default, Feb 26 2021, 18:47:35)
[GCC 7.3.0] :: Anaconda, Inc. on linux
Type "help", "copyright", "credits" or "license" for more information.

import sige.cpu
sige.cpu.gather
<built-in method gather of PyCapsule object at 0x7fbd56352b10>
import sige.cuda
sige.cuda.gather
<built-in method gather of PyCapsule object at 0x7fbd54eda3f0>

However, I tried to run the example.py again and encountered the same error.

Thank you!

from sige.

lmxyy avatar lmxyy commented on August 28, 2024

This looks weird as you could import the package. Could you hack the package source code in sige/nn/base.py like this:

for device in self.devices:
    name = "sige.%s" % device
    try:
        module = importlib.import_module(name)
        runtime = getattr(module, function_name)
        runtime_dict[device] = runtime
    except (ModuleNotFoundError, AttributeError) as err:
        runtime_dict[device] = None
        print('!!!name: %s   device: %s' % (name, device))
        print('@@@Error message: %s' % err)

I would like to know what caused your import fail.

from sige.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.