ModelRuntimeCompatibility constructor

ModelRuntimeCompatibility({
  1. Iterable<InferenceFramework>? compatibleFrameworks,
  2. Iterable<ModelFormat>? compatibleFormats,
})

Implementation

factory ModelRuntimeCompatibility({
  $core.Iterable<InferenceFramework>? compatibleFrameworks,
  $core.Iterable<ModelFormat>? compatibleFormats,
}) {
  final result = create();
  if (compatibleFrameworks != null)
    result.compatibleFrameworks.addAll(compatibleFrameworks);
  if (compatibleFormats != null)
    result.compatibleFormats.addAll(compatibleFormats);
  return result;
}