You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**When class is created it checks if it has metaclass defined. If not, it recursively checks if any of his parents has it defined and eventually comes to type.**
1121
+
1119
1122
```python
1120
1123
classMyClass(metaclass=MyMetaClass):
1121
1124
def__init__(self):
@@ -1508,7 +1511,8 @@ Line # Hits Time Per Hit % Time Line Contents
1508
1511
```
1509
1512
1510
1513
### Call Graph
1511
-
#### Generates a PNG image of call graph with highlighted bottlenecks.
1514
+
**Generates a PNG image of call graph with highlighted bottlenecks.**
1515
+
1512
1516
```python
1513
1517
# $ pip3 install pycallgraph
1514
1518
from pycallgraph import output, PyCallGraph
@@ -1554,20 +1558,24 @@ index = <array>.argmin([axis])
1554
1558
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1555
1559
right = [ 0.1 , 0.6 , 0.8 ] # Shape: (3)
1556
1560
```
1561
+
1557
1562
**1. If array shapes differ, left-pad the smaller shape with ones.**
1558
1563
```python
1559
1564
left = [[0.1], [0.6], [0.8]] # Shape: (3, 1)
1560
1565
right = [[0.1 , 0.6 , 0.8]] # Shape: (1, 3) <- !
1561
1566
```
1567
+
1562
1568
**2. If any dimensions differ in size, expand the ones that have size 1 by duplicating their elements.**
0 commit comments