Initial import: grid-bot — grid trading bot for BTC-USDT on Cifra Markets
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
from torchgen.model import NativeFunctionsGroup
|
||||
|
||||
|
||||
# Follows dispatcher calling convention, but:
|
||||
# - Mutable arguments not allowed. Meta functions are always
|
||||
# written in functional form. Look at FunctionSchema.signature()
|
||||
# - No tensor returns; instead we return a TensorMeta describing
|
||||
# the tensor in question
|
||||
|
||||
|
||||
def name(g: NativeFunctionsGroup) -> str:
|
||||
# use the overload name from the functional version
|
||||
return str(g.functional.func.name).replace(".", "_")
|
||||
Reference in New Issue
Block a user