Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for StringAttr (0.14 sec)

  1. tensorflow/compiler/mlir/lite/experimental/tac/execution_metadata_exporter.cc

      // execution.
      if (llvm::isa<mlir::func::ReturnOp, mlir::quantfork::StatisticsOp>(op))
        return std::nullopt;
    
      if (!HasValidHardwareTarget(op)) return std::nullopt;
    
      auto device = op->getAttrOfType<mlir::StringAttr>(mlir::TFL::tac::kDevice);
      if (device == nullptr) return std::nullopt;
    
      llvm::StringRef device_name_str = device.getValue();
      return device_name_str.str();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 06:11:34 UTC 2024
    - 7.5K bytes
    - Viewed (0)
Back to top