Skip to content

Commit

Permalink
增加ATAN的默认alpha
Browse files Browse the repository at this point in the history
  • Loading branch information
fangwei123456 committed Sep 14, 2020
1 parent afe1f7f commit 9ce6303
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions spikingjelly/clock_driven/surrogate.py
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,8 @@ def backward(ctx, grad_output):


class ATan(SurrogateFunctionBase):
def __init__(self, alpha=2.0, spiking=True, learnable=False):
super().__init__(alpha, spiking, learnable)
'''
* :ref:`API in English <ATan.__init__-en>`
.. _ATan.__init__-cn:
Expand Down
2 changes: 1 addition & 1 deletion spikingjelly/datasets/__init__.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
from torch.utils.data import Dataset
import tqdm
import os
import numpy as np
import torch
import threading
import zipfile
from torchvision.datasets import utils

class FunctionThread(threading.Thread):
def __init__(self, f, *args, **kwargs):
super().__init__()
Expand Down

0 comments on commit 9ce6303

Please sign in to comment.