This repository was archived by the owner on Mar 30, 2022. It is now read-only.

Description
I'm having trouble shuffling a tensor along a specified axis. I tried using a shuffled array of indices to do this, like so:
var indices: [Int] = Array(0...cardinality)
indices.shuffle()
return data[indices]
The problem is that S4TF does not like integer arrays being used as indices. I get the error argument type '[Int]' does not conform to expected type 'TensorRangeExpression'