remove "return state" for functions which will be executed in vmap; recover randkey as args in mutation methods
27 lines
538 B
Python
27 lines
538 B
Python
class BaseSubstrate:
|
|
def make_nodes(self, query_res):
|
|
raise NotImplementedError
|
|
|
|
def make_conn(self, query_res):
|
|
raise NotImplementedError
|
|
|
|
@property
|
|
def query_coors(self):
|
|
raise NotImplementedError
|
|
|
|
@property
|
|
def num_inputs(self):
|
|
raise NotImplementedError
|
|
|
|
@property
|
|
def num_outputs(self):
|
|
raise NotImplementedError
|
|
|
|
@property
|
|
def nodes_cnt(self):
|
|
raise NotImplementedError
|
|
|
|
@property
|
|
def conns_cnt(self):
|
|
raise NotImplementedError
|