JERRYLSU

pytorch.nn.functional.pad
by Jerry Su, post on May 02, 2022

Reason is the light and the light of life.

Read in 2 mins
Image tilt correction
by Jerry Su, post on Apr 24, 2022

Reason is the light and the light of life.

Read in 2 mins
cv cv
Joblib parallel
by Jerry Su, post on Mar 23, 2022

Reason is the light and the light of life.

Read in 2 mins
Creating folds properly
by Jerry Su, post on Feb 27, 2022

Reason is the light and the light of life.

Read in 5 mins
Longformer BigBird
by Jerry Su, post on Feb 22, 2022

Reason is the light and the light of life.

Read in 2 mins
Mapping chars and words to tokens
by Jerry Su, post on Feb 22, 2022

Reason is the light and the light of life.

Read in 3 mins
Feedback prize evaluating student writing
by Jerry Su, post on Feb 18, 2022

Reason is the light and the light of life.

Read in 7 mins
Scipy stats
by Jerry Su, post on Jan 06, 2022

Reason is the light and the light of life.

Binomial distribution
by Jerry Su, post on Jan 05, 2022

Reason is the light and the light of life.

Read in 3 mins
Numpy [None, …]
by Jerry Su, post on Nov 26, 2021

    None在对应位置增加一个维度(类似于unsqueeze(axis=))

    ...等价于[:,:,:]

    import numpy as np
    
    arr = np.random.randn(5, 10)
    arr.shape
    
    (5, 10)
    
    arr[None, ...].shape
    
    (1, 5, 10)
    
    arr[..., None].shape
    
    (5, 10, 1)
    
    arr[:, None, :].shape
    
    (5 …

    Read in 1 mins