We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 745a126 commit 6595299Copy full SHA for 6595299
bittensor/core/subtensor_api/__init__.py
@@ -67,6 +67,8 @@ def __init__(
67
self.log_verbose = log_verbose
68
self.is_async = async_subtensor
69
self._config = config
70
+ # assigned only for async instance
71
+ self.initialize = None
72
self._subtensor = self._get_subtensor()
73
74
# fix naming collision
@@ -92,6 +94,7 @@ def __init__(
92
94
def _get_subtensor(self) -> Union["_Subtensor", "_AsyncSubtensor"]:
93
95
"""Returns the subtensor instance based on the provided config and subtensor type flag."""
96
if self.is_async:
97
+ self.initialize = self._subtensor.initialize
98
return _AsyncSubtensor(
99
network=self.network,
100
config=self._config,
0 commit comments