Skip to content
This repository was archived by the owner on Feb 7, 2025. It is now read-only.
This repository was archived by the owner on Feb 7, 2025. It is now read-only.

remove assert in code #381

@Can-Zhao

Description

@Can-Zhao

There are several assert in code, which can be dangerous, e.g.

assert len(timesteps.shape) == 1, "Timesteps should be a 1d-array"

assert x.shape[1] == self.num_channels

assert should be used only for debugging. It will be ignored when running in a product environment. We should remove all the assert in source code, except for testing script.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions