Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for IsStrArrayAttr (0.08 sec)

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

    namespace tf_saved_model {
    
    //===----------------------------------------------------------------------===//
    // Utilities
    //===----------------------------------------------------------------------===//
    
    static bool IsStrArrayAttr(Attribute attr) {
      auto array = mlir::dyn_cast<ArrayAttr>(attr);
      if (!array) return false;
    
      return llvm::all_of(
          array, [](Attribute attr) { return mlir::isa<StringAttr>(attr); });
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
Back to top