|
132 | 132 |
|
133 | 133 | # deprecated |
134 | 134 | from brainpy._src.math.object_transform.base import (Base as Base, |
135 | | - DynVarCollector, |
| 135 | + ArrayCollector, |
136 | 136 | Collector as Collector, ) |
137 | | -globals()['ArrayCollector'] = DynVarCollector |
138 | | -globals()['TensorCollector'] = DynVarCollector |
| 137 | +globals()['TensorCollector'] = ArrayCollector |
139 | 138 |
|
140 | 139 | train.__dict__['DSTrainer'] = DSTrainer |
141 | 140 | train.__dict__['BPTT'] = BPTT |
|
150 | 149 | base.base.__dict__['BrainPyObject'] = BrainPyObject |
151 | 150 | base.base.__dict__['Base'] = Base |
152 | 151 | base.collector.__dict__['Collector'] = Collector |
153 | | -base.collector.__dict__['ArrayCollector'] = DynVarCollector |
154 | | -base.collector.__dict__['TensorCollector'] = DynVarCollector |
| 152 | +base.collector.__dict__['ArrayCollector'] = ArrayCollector |
| 153 | +base.collector.__dict__['TensorCollector'] = ArrayCollector |
155 | 154 | base.function.__dict__['FunAsObject'] = math.FunAsObject |
156 | 155 | base.function.__dict__['Function'] = math.FunAsObject |
157 | 156 | base.io.__dict__['save_as_h5'] = checkpoints.io.save_as_h5 |
|
166 | 165 | base.__dict__['BrainPyObject'] = BrainPyObject |
167 | 166 | base.__dict__['Base'] = Base |
168 | 167 | base.__dict__['Collector'] = Collector |
169 | | -base.__dict__['ArrayCollector'] = DynVarCollector |
170 | | -base.__dict__['TensorCollector'] = DynVarCollector |
| 168 | +base.__dict__['ArrayCollector'] = ArrayCollector |
| 169 | +base.__dict__['TensorCollector'] = ArrayCollector |
171 | 170 | base.__dict__['FunAsObject'] = math.FunAsObject |
172 | 171 | base.__dict__['Function'] = math.FunAsObject |
173 | 172 | base.__dict__['save_as_h5'] = checkpoints.io.save_as_h5 |
|
0 commit comments