About 2,760,000 results
Open links in new tab
  1. correct and efficient way to flatten array in numpy in python?

    46 You might need to check out numpy.flatten and numpy.ravel, both return a 1-d array from an n-d array. Furthermore, if you're not going to modify the returned 1-d array, I suggest you use …

  2. How to 'Flatten' in Adobe Acrobat Pro DC

    Jan 6, 2016 · We recently purchased Adobe Acrobat Pro DC and I'm trying to figure out how to take a document that I added a stamp to and flatten it so our users cannot delete the stamp …

  3. What is the role of "Flatten" in Keras? - Stack Overflow

    The role of the Flatten layer in Keras is super simple: A flatten operation on a tensor reshapes the tensor to have the shape that is equal to the number of elements contained in tensor non …

  4. python - Understanding torch.nn.Flatten - Stack Overflow

    May 9, 2021 · 8 It is a difference in the default behaviour. torch.flatten flattens all dimensions by default, while torch.nn.Flatten flattens all dimensions starting from the second dimension …

  5. When would you use `flatten ()` instead of`reshape (-1)`?

    Sep 8, 2019 · 11 Often, when numpy has seemingly duplicate functions, there often ends up being some sort of unique purpose for one or the other. I am trying to figure out if there are …

  6. Solved: Problem Flattening a PDF - Adobe Product Community

    Sep 25, 2025 · Solved: I recently encountered a problem when trying to flatten a PDF. I successfully flattened one a month ago, but now I am having issues. These are the - 12695382

  7. How to flatten only some dimensions of a numpy array

    Sep 12, 2013 · Is there a quick way to "sub-flatten" or flatten only some of the first dimensions in a numpy array? For example, given a numpy array of dimensions (50,100,25), the resultant …

  8. How to flatten nested array in javascript? - Stack Overflow

    Dec 3, 2014 · Conclusion: To flatten an arbitrarily nested array in a functional way we just need a one-liner: const flatten = f => traverse(f) (concat) ([]);. All other involved functions are generic …

  9. How to "flatten" or make lines/text uneditable in a PDF

    Apr 4, 2024 · Many years/versions of Acrobat ago, I would "flatten" the PDF before sending, but now when I try to find out how to do it in the latest version of Acrobat I can't get any clear …

  10. What is the difference between flatten and ravel functions in numpy?

    The current API is that: flatten always returns a copy. ravel returns a contiguous view of the original array whenever possible. This isn't visible in the printed output, but if you modify the …