Skip to content

Commit

Permalink
Marking indptrBuffers, indicesBuffers and axisOrder required.
Browse files Browse the repository at this point in the history
  • Loading branch information
rok committed Feb 5, 2020
1 parent d9ff47e commit 3291abc
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions format/SparseTensor.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -146,33 +146,33 @@ table SparseTensorIndexCSF {
/// 2 3 1 3 1 1 2 3

/// The type of values in indptrBuffers
indptrType: Int;
indptrType: Int (required);

/// indptrBuffers stores the sparsity structure.
/// Position in the indptrBuffers vector signifies the dimension.
/// For example, the indptrBuffers for the above X is:
///
/// indptrBuffer(X) = [[0, 2, 3], [0, 1, 3, 4], [0, 2, 4, 5, 8]].
///
indptrBuffers: [Buffer];
indptrBuffers: [Buffer] (required);

/// The type of values in indicesBuffers
indicesType: Int;
indicesType: Int (required);

/// indicesBuffers stores the label of each node.
/// Position in the indicesBuffers vector signifies the dimension.
/// For example, the indicesBuffers for the above X is:
///
/// indicesBuffer(X) = [[1, 2], [1, 2, 2], [1, 1, 2, 2], [2, 3, 1, 3, 1, 1, 2, 3]].
///
indicesBuffers: [Buffer];
indicesBuffers: [Buffer] (required);

/// axisOrder stores the sequence in which dimensions were traversed to produce the prefix tree.
/// For example, the axisOrder for the above X is:
///
/// axisOrder(X) = [0, 1, 2, 3].
///
axisOrder: [Int];
axisOrder: [Int] (required);
}

union SparseTensorIndex {
Expand Down

0 comments on commit 3291abc

Please sign in to comment.