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.

Support for model prediction on Rank 5 Tensors

See original GitHub issue

To get help from the community, check out our Google group.

TensorFlow.js version

0.13.1

Browser version

Chrome 69.0.3497.100

Describe the problem or feature request

First time here, so I might be doing this completely wrong… 😬

Tensorflow.js model.predict() does not support tensors of rank 5 - resulting error:

Error: sliceAlongFirstAxis() received an unsupported tensor rank: 5

File for function: tfjs_backend.ts.

I saw the issue #249 and PR tensorflow/tfjs-core, and wondered whether we should create a tfc.slice5d method to handle add support for 5d tensors to prediction?

Code to reproduce the bug / link to feature request

Don’t think it’s necessary? Can provide some later if needed

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
rthadurcommented, Sep 5, 2019

@prouast please open a new issue using template and reference this issue , we will be able to help you there, thank you

1reaction
nsthoratcommented, Nov 26, 2018

Keeping this open since we have a fix pending.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to use a model to do predictions with Keras - ActiveState
Keras models can be used to detect trends and make predictions, using the model.predict() class and it's variant, ...
Read more >
Rank, Axes, and Shape Explained - Tensors for Deep Learning
The rank, axes, and shape are three tensor attributes that will concern us most when starting out with tensors in deep learning.
Read more >
Soft Tensor Regression - PMC - NCBI
A simple approach to tensor regression vectorizes the tensor predictor and fits a regression model of the outcome on the tensor's entries while...
Read more >
What are Tensors in Machine Learning? | by Niklas Lang
If you want to describe tensors more precisely, you need the so-called rank and the dimension. These can determine the size of the...
Read more >
Why does model.fit require two-dimensional tensors? And why ...
Since model.fit and model.predict takes as parameter a tensor of the same rank, model.predict parameter is a tensor of rank 2 or more...
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