question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug in ImageClassifier.fsx

See original GitHub issue

In the ImageClassifier.fsx example, the line below causes an error: Dimension -1 must be >= 0

let input_placeholder =
    graph.Placeholder
        (TFDataType.Float32, shape = TFShape(-1L, -1L, -1L, 3L),
         name = "new_input")

Removing the shape parameter allows the demo to run successfully. But something like this also works:

TFShape(Some ([|None; None; None; Some 3|] |> Array.map Dimension))

Should -1L be detected and mapped to None in the constructors, something like what happens in shape?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
moloneymbcommented, Feb 13, 2019

Oops, I didn’t see your response as I had not refreshed the issue page.

I would love to see a Transformer architecture, I haven’t had time to dig into it. There is the new one Transformer XL that’ll be really cool to see.

Slack is the F# Software Foundation Slack page, I believe you can join through here https://fsharp.nationbuilder.com/forms/user_sessions/new once signed up you should get a slack invite.

0reactions
moloneymbcommented, Feb 13, 2019

This should now be fixed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bug in ImageClassifier.fsx · Issue #20 · fsprojects/fsharp-ai-tools
In the ImageClassifier.fsx example, the line below causes an error: Dimension -1 must be >= 0 let input_placeholder = graph.Placeholder (TFDataType.
Read more >
FSX Play - Bug Tracking Thread
Hi All,, Please use this thread to track all known bugs and issues. Please try to give as much detail as possible.
Read more >
Create onnx model. The BigQuery API. ML. 1/11. For explicit ...
For instructions on how to do this, see Create and train a classifier. Running the example model Nov 25, 2022 · I am...
Read more >
[BUG LOGGED] ATC asking for descent in to terrain?
The best part is when you are 10 miles from the airport and it tells you to descend, then climb, then descend. I...
Read more >
Why the autopilot is trying to kill you: It may not be a bug.
A workaround I found is to counter the steering with the joystick/yoke until you're level, and very slowly release it. Usually allows the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found