try:
launcher.start()
client = Client(INeuralNetworkAPI(), conn_conf)
return client.get_available_devices()
except Exception as e:
logger.exception("Failed to fetch devices")
finally:
After Change
with grpc.insecure_channel(f"{addr}:{port1}") as chan:
client = inference_pb2_grpc.InferenceStub(chan)
resp = client.ListDevices(inference_pb2.Empty())
return [(d.id, d.id) for d in resp.devices]
except Exception as e:
logger.exception("Failed to fetch devices")
finally:
try: