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.

model: pytorch: base: Update calls to numpy array creation

See original GitHub issue
/home/runner/work/dffml/dffml/model/pytorch/dffml_model_pytorch/pytorch_base.py:181: VisibleDeprecationWarning: Creating an ndarray from ragged nested sequences (which is a list-or-tuple of lists-or-tuples-or ndarrays with different lengths or shapes) is deprecated. If you meant to do this, you must specify 'dtype=object' when creating the ndarray
  x_cols[feature] = np.array(x_cols[feature])

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
snnipetrcommented, Feb 17, 2022

@pdxjohnny I think this issue still persists. Can I take up this one ?

1reaction
programmer290399commented, Feb 18, 2022

Hey @snnipetr !!

Yess!! If you can reproduce the issue then please go ahead… So as I can see there has been some work around this in #1000, so please take a look at that.

Also, as a rule, we don’t ask if we can do something, we state our intention to try to do it, then follow these guidelines.

Before making a PR please also take a look at the relevant documentation up here

I hope this helps, please feel free to ask any questions on gitter 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

torch.from_numpy — PyTorch 1.13 documentation
Creates a Tensor from a numpy.ndarray . The returned tensor and ndarray share the same memory. Modifications to the tensor will be reflected...
Read more >
Pytorch Tutorial from Basic to Advance Level - Kunal Bhashkar
In this blog, I will explain about Pytorch open-source Deep Learning library with the algorithmic implementation of Deep learning concepts.
Read more >
Understanding PyTorch with an example: a step-by-step tutorial
For training a model, there are two initialization steps: ... Loading data: turning Numpy arrays into PyTorch tensors.
Read more >
NEP 18 — A dispatch mechanism for NumPy's high level array ...
In NumPy 1.16, you need to set the environment variable NUMPY_EXPERIMENTAL_ARRAY_FUNCTION=1 before importing NumPy to test NumPy function ...
Read more >
PyTorch Tutorial: How to Develop Deep Learning Models with ...
A Tensor is just the PyTorch version of a NumPy array for holding data ... the model graph, like calling backward() when training...
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