Coder Social home page Coder Social logo

Comments (2)

GayathriNarayana19 avatar GayathriNarayana19 commented on September 28, 2024

Mac:

try:
    import sionna
    print("sionna imported successfully")
except ImportError:
    print("Failed to import sionna")

try:
    import mitsuba
    print("mitsuba imported successfully")
except ImportError:
    print("Failed to import mitsuba")

sionna imported successfully
mitsuba imported successfully
constellation = sionna.mapping.Constellation("qam", 8)
print(constellation)
<Constellation name=constellation_5, built=False>

I tried on my Mac. I was able to install Sionna and Mitsuba. And, import statements were also working as you can see above.
I tried using an attribute "mapping" of sionna to check if it works. It worked and printed the constellation name as you can see above. But surprisingly, other attributes of sionna like "scene" doesn't work.
I have the right pip and python version though.

pip3 --version
pip 24.0 from /opt/homebrew/lib/python3.12/site-packages/pip (python 3.12)

ARM

On Arm, mitsuba installation using pip is not supported. There are no proper platform supportive .whl files to build mitsuba3 from source, I believe. Because build is not successful on Arm. So even importing mitsuba is not successful on Arm but it works on Mac.

These issues were not faced on x86.

Hello world test gave the following output on MAC

File ~/Jupyter_env_G3/lib/python3.9/site-packages/keras/src/layers/layer.py:753, in Layer.__call__(self, *args, **kwargs)
    749     for arg in tree.flatten(args):
    750         if not isinstance(arg, KerasTensor) and not backend.is_tensor(
    751             arg
    752         ):
--> 753             raise ValueError(
    754                 "Only input tensors may be passed as "
    755                 "positional arguments. The following argument value "
    756                 f"should be passed as a keyword argument: {arg} "
    757                 f"(of type {type(arg)})"
    758             )
    760 # Caches info about `call()` signature, args, kwargs.
    761 call_spec = CallSpec(self._call_signature, args, kwargs)

ValueError: Only input tensors may be passed as positional arguments. The following argument value should be passed as a keyword argument: 1000 (of type <class 'int'>)

from sionna.

merlinND avatar merlinND commented on September 28, 2024

Hello @GayathriNarayana19,

Mac

Could you please report specific error messages for the problem you are encountering?
Ideally, when running one of the built-in examples or tutorial notebooks.

ARM

As far as I am aware, we have not validated Sionna on Arm N1. However, the error message that you shared is in Keras.
Is it possible that the Kheras or Tensorflow version that you tested with on Arm is not part of the supported versions?

from sionna.

Related Issues (20)

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.