Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsTrailingDimensions (0.23 sec)

  1. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

    // Returns true if the dimensions in `a` is a suffix of the ones in `b`.
    // For example, dimensions {2}, {1, 2}, and {3, 1, 2} are all suffixes to
    // {5, 4, 3, 1, 2}, while {1}, {5, 4}, and {1, 3, 2} are all not.
    inline bool IsTrailingDimensions(ArrayRef<int64_t> a, ArrayRef<int64_t> b) {
      if (a.size() > b.size()) return false;
    
      return std::equal(a.rbegin(), a.rend(), b.rbegin());
    }
    
    // Returns true if it is a shaped type of f32 elements.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
Back to top