message: [Pluggable Device] Use default settings when device "architecture" field is not set.
diff: @@ -736,7 +736,10 @@ DeviceInfo OpLevelCostEstimator::GetDeviceInfo(
  }
  }
  } else if (device.type() == "GPU") {
  - const std::string architecture = device.environment().at("architecture");
  + const auto& device_env = device.environment();
  + auto it = device_env.find("architecture");
  + if (it != device_env.end()) {
  + const std::string architecture = device_env.at("architecture");
  int cores_per_multiprocessor;
  if (architecture < "3") {
  // Fermi
  @@ -759,6 +762,12 @@ DeviceInfo OpLevelCostEstimator::GetDeviceInfo(
  } else {
  gb_per_sec = 100;
  }
  + } else {
  + // Architecture is not available (ex: pluggable device), return default value.
  + gb_per_sec = 100;
  + gflops = 100; // Dummy value;
  + gb_per_sec = 12; // default PCIe x16 gen3.
  + }
  } else {
  LOG_EVERY_N(WARNING, 1000) << "Unknown device type: " << device.type()
  << ", assuming PCIe between CPU and GPU.";
  