-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce
pm.Data(..., mutable)
kwarg
By passing `pm.Data(mutable=False)` one can create a `TensorConstant` instead of a `SharedVariable`. Data variables with known, fixed shape can enhance performance and compatibility in some situations. `pm.ConstantData` or `pm.MutableData` wrappers are provided as alternative syntax. This is the basis for solving #4441.
- Loading branch information
1 parent
a9b8afe
commit c721232
Showing
3 changed files
with
109 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters