Skip to content

Commit

Permalink
add edm4eic::Tensor (#96)
Browse files Browse the repository at this point in the history
This adds a new type that facilitates exchange of tensor data for ML
applications.
  • Loading branch information
veprbl authored Nov 4, 2024
1 parent 33e68e6 commit 9f0067b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions edm4eic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,16 @@ components:

datatypes:

edm4eic::Tensor:
Description: "Tensor type for use in training in inference of ML models"
Author: "D. Kalinkin"
Members:
- int32_t elementType // Data type in the same encoding as "ONNXTensorElementDataType", 1 - float, 7 - int64
VectorMembers:
- int64_t shape // Vector of tensor lengths along its axes
- float floatData // Iff elementType==1, values are stored here
- int64_t int64Data // Iff elementType==7, values are stored here

## ==========================================================================
## Particle info
## ==========================================================================
Expand Down

0 comments on commit 9f0067b

Please sign in to comment.