Every line of '.shape() python' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your Python code is secure.
27 @operation 28 def Shape(array: ArrayType[T]) -> ShapeType: 29 ...
898 @property 899 def shape(self): 900 return ([c for (c,l) in self.components if isinstance(c, Shape)]\ 901 +[None])[0]
90 def getShape(self): 91 """Shape of the array, one element per dimension""" 92 return tuple(self.nda.getShape().getSizes())