Confused with conv2d op
Hi everyone,
I'm trying to test out the conv2d mojo op in the graph API: https://docs.modular.com/max/api/mojo/graph/ops/convolution/conv2d/ but I'm pretty confused and there are some things I've been trying to figure out for a while now.
First of all I don't know what is the RSCF layout and I can't seem to find any information online. This leads me to not really understand how to know which shape the output tensor will have given the shape of and input and a filter. I'm currently running this code ( I will append it in a comment because the message is to large)...
1 Billion nested loop iterations Mojo Implementation - seeking feedback
Hey everyone, first time writing mojo and I am seeking feedback for my implementation on 1 Billion nested loop iterations, it's making its rounds on X and I thought I give it go in Mojo. Here is my current working branch was wondering if there is a better way to do this? The goal is not to implement the fastest way but the most "straight forward". I had a hard ti...
Help I have skill issues
I'm new to mojo and am still having trouble navigating the syntax. Currently, I'm trying to build a simple random number generator using the random module. The following is the function that's giving me problems. It says that I
cannot implicitly convert 'None' value to SIMD[uint8, 1]
. I think the real issue is that I'm unclear as to how to instantiate a pointer for the random variable. Originally, I put the unsafe pointer in the number variable but moved it to it's own variable in hopes of resolving the issue.
I'm sure that I'm making a stupid mistake, but I am really hoping to learn how to write in this language as it would be a great addition to the field. Here is my function:
```import random...Cannot start a mojo REPL in WSL
I am following the Get Started guide here: https://docs.modular.com/mojo/manual/get-started.
I have successfully completed all the sub-steps in 'Step 1: Create a new project' and running 'mojo --version' works fine.
However, for 'step 2: run code in REPL', when I type 'mojo', I get the error: "unknown error"....
magic stuck on updating lock-file (loading repodata)
magic stuck on updating lock-file (loading repodata). More specifically on "loading repodata". I tried --verbose, but the output was not helpful. My command
magic init hello-wold --format mojoproject --verbose
This is probably related to my env, but does anyone know how to debug this and what it's trying to do exactly? Is it trying to download files from github?...
Intel based Macs
I have a late 2019 MBP that is Intel based. Is there ever going to be a port to Macs without Apple Silicon?
Is unpacking variadic arguments coming soon?
At the moment, variadic arguments can be passed to other functions via
VariadicList
and the like. However, this approach fails if the second function is more general. An example:
```python
@value
@register_passable("trivial")
struct MyType(Stringable):...MNIST slower on MAX than on Pytorch
Hi everyone, I'm getting started with all this promising stuff you guys are developing so I took a look at the tutorial to get started with MAX Graph: https://docs.modular.com/max/tutorials/get-started-with-max-graph/
I have been playing with the code it provides and I measured the time the python MNIST implementation takes to do inference which in my CPU is around 1.3 seconds and I did the same with the Mojo/MAX implemetation which takes around 5.5 seconds. My question is: shouldn't MAX be faster or at least the same as python? I'm not sure if this being a toy example does not really show the potential speedups you can get with MAX or If I'm getting something wrong in terms of the goal of MAX.
Thanks in advance!...
Mojo old version installation
Hi folks.
Thanks for maintaining this wonderful community.
I am NLP researcher and trying to generate mojo codes, as it is fully OOD language in most case.
I am trying to run
humaneval-mojo
but it seems the dataset is constructed with old version of mojo.
So, I looked around how can I install older version of mojo....Mojo crashpad issues
Whenever I run mojo on my computer, I get the following error message
Failed to initialize Crashpad. Crash reporting will not be available. Cause: while locating crashpad handler: unable to locate crashpad handler executable
I'm running this on the latest stable version of Ubuntu thorugh VS Code. I already looked through stack overflow and they're all discussing this issue on windows. It seems that my programs are still running so I don't even know what the problem is.
Does anyone know this error? What is causing it? How do I resolve it?...Passing method references to high-order functions
I would like to pass a reference to a method once the object has been instanciated to a high-order function as an argument, but it seems not supported, right?
Example:
```mojo
@value
struct Foo:...
The Mojo Approach to Performance Programming
Is it possible to view slides/recording of this workshop? As mentioned in the abstract, it provides insights about how the Mojo compiler works.
Link: https://sc24.supercomputing.org/proceedings/workshops/workshop_pages/misc313.html...
Bug or Feature
I'm brand spanking new to this language, though I have coded in Python. When I was testing this language out, I noticed that my code didn't work when I indented the block of a while loop. This seemed a little strange, and a little different from the traditional Python programming syntax.
Was this a bug or a feature? Am I insane for noticing this, or am I a genius?...
Using the input function will cause Mojo to crash.
Using the input function in the main function causes mojo to crash.
Please tell me why it crashes and how to work around it.
...
fn main():'''
name = input("Enter your name: ”)
print(“Hello”, name)
fn main():'''
name = input("Enter your name: ”)
print(“Hello”, name)
command not found
Whenever inside a magic shell, it says mojo is not installed when I try running mojo
Error 403 when 'magic init`
Hello!
I try to run 'magic init hello-world --format mojoproject' but got error:
ERROR error=HTTP status client error (403 Forbidden) for url (https://conda.modular.com/max/noarch/repodata.json)...
does mojo have access modifiers
for example in rust :
```Rust
struct Foo{
pub public_member:u32
private_member:u32...
How do I build with debug symbols on the stdlib?
mojo build -g only includes debug symbols on the .mojo file itself.
Getting jupyter lab to run mojo on Apple Silicon
I'm unable to find the mojo kernal on VSCode Jupyter nor the web version of Jupyter Lab. What could I be missing?
The tutorial seems incorrect https://github.com/modularml/mojo/blob/main/examples/notebooks/README.md
VSCode seems to explicitly require a python environment. And
$MODULAR_HOME
is not a thing that exists...