About 37,100,000 results
Open links in new tab
  1. What does .shape [] do in "for i in range (Y.shape [0])"?

    Aug 8, 2014 · shape is a tuple that gives you an indication of the number of dimensions in the array. So in your case, since the index value of Y.shape[0] is 0, your are working along the first …

  2. Difference between numpy.array shape (R, 1) and (R,)

    Shape n, expresses the shape of a 1D array with n items, and n, 1 the shape of a n-row x 1-column array. (R,) and (R,1) just add (useless) parentheses but still express respectively 1D …

  3. arrays - what does numpy ndarray shape do? - Stack Overflow

    Nov 30, 2017 · 82 yourarray.shape or np.shape() or np.ma.shape() returns the shape of your ndarray as a tuple; And you can get the (number of) dimensions of your array using …

  4. PyTorch: How to get the shape of a Tensor as a list of int

    Oct 19, 2017 · Instead of calling list, does the Size class have some sort of attribute I can access directly to get the shape in a tuple or list form?

  5. tensorflow placeholder - understanding `shape= [None,`

    You can think of a placeholder in TensorFlow as an operation specifying the shape and type of data that will be fed into the graph.placeholder X defines that an unspecified number of rows of …

  6. android - How to set shape's opacity? - Stack Overflow

    Jun 4, 2015 · I already know how to set the opacity of the background image but I need to set the opacity of my shape object. In my Android app, I have it like this: and I want to make this black …

  7. python - Numpy array dimensions - Stack Overflow

    Jun 17, 2010 · A piece of advice: your "dimensions" are called the shape, in NumPy. What NumPy calls the dimension is 2, in your case (ndim). It's useful to know the usual NumPy …

  8. Keras input explanation: input_shape, units, batch_size, dim, etc

    Jun 25, 2017 · For any Keras layer (Layer class), can someone explain how to understand the difference between input_shape, units, dim, etc.? For example the doc says units specify the …

  9. OpenCV NoneType object has no attribute shape - Stack Overflow

    Oct 3, 2016 · The Python AttributeError: 'NoneType' object has no attribute 'shape' occurs after passing an incorrect path to cv2.imread () because the path of image/video file is wrong or the …

  10. numpy - Shape of array python - Stack Overflow

    Mar 27, 2013 · Shape of array python Asked 12 years, 3 months ago Modified 12 years, 3 months ago Viewed 74k times