Skip to content

Version 2.3.0

Compare
Choose a tag to compare
@chaoming0625 chaoming0625 released this 19 Dec 11:25
· 1157 commits to master since this release
ac1ac12

This branch of releases aims to provide a unified computing framework for brain simulation and brain-inspired computing.

New features

  1. brainpy.BPTT supports train_data and test_data with general Python iterators. For instance, one can train a model with PyTorch dataloader or TensorFlow datasets.
import torchvision
from torch.utils.data import DataLoader
data = torchvision.datasets.CIFAR10("./CIFAR10", train=False, transform=torchvision.transforms.ToTensor())
loader = DataLoader(dataset=data, batch_size=4, shuffle=True, num_workers=0, drop_last=False)

# any generator can be used for train_data or test_data
trainer = bp.BPTT()
trainer.fit(loader)
  1. Consolidated object-oriented transformation in brainpy.math.object_transform module. All brainpy transformations generate a new BrainPyObject instance so that objects in brainpy can be composed hierarchically. brainpy.math.to_object() transformation transforms a pure Python function into a BrainPyObject.

  2. New documentation is currently online for introducing the consolidated BrainPy concept of object-oriented transformation.

  3. Change brainpy.math.JaxArray to brainpy.math.Array.

Deprecations

  1. brainpy.datasets module is no longer supported. New APIs will be moved into brainpy-datasets package.
  2. brainpy.train.BPTT no longer support to receive the train data [X, Y]. Instead, users should provide a data generator such like pytorch dataset or tensorflow dataset.
  3. The update function of brainpy.math.TimeDealy does not support receiving a time index. Instead, one can update the new data by directly using TimeDealy.update(data) instead of TimeDealy.update(time, data).
  4. Fix the monitoring error of delay differential equations with brainpy.integrators.IntegratorRunner.

Bug Fixes

  1. Fix the bug on One2One connection.
  2. Fix the bug in eprop example.
  3. Fix ij2csr transformation error.
  4. Fix test bugs

What's Changed

Full Changelog: V2.2.4.0...V2.3.0