Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ReversePermutation (0.42 sec)

  1. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.cc

    #include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_layout_helper.h"
    
    #include "mlir/Support/LLVM.h"  // from @llvm-project
    
    namespace mlir {
    namespace TF {
    
    SmallVector<int64_t, 4> ReversePermutation(ArrayRef<int64_t> permutation) {
      SmallVector<int64_t, 4> reverse(permutation.size());
      for (size_t i = 0; i < permutation.size(); ++i) {
        reverse[permutation[i]] = i;
      }
      return reverse;
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 3.3K bytes
    - Viewed (0)
Back to top