derrickaw commented on code in PR #34087:
URL: https://github.com/apache/beam/pull/34087#discussion_r1975777960
##########
website/www/site/content/en/documentation/runtime/resource-hints.md:
##########
@@ -79,3 +91,23 @@ pcoll | MyPTransform().with_resource_hints(
pcoll | beam.ParDo(BigMemFn()).with_resource_hints(
min_ram="30GB")
{{< /highlight >}}
+
+{{< highlight yaml >}}
+ - type: RunInference
+ config:
+ ...
+ resource_hints:
+ min_ram: 4GB
+ accelerator: "type:nvidia-tesla-k80;count:1;install-nvidia-driver"
+
+ - type: MapToFields
+ config:
+ ...
+ resource_hints:
+ min_ram: 30GB
+{{< /highlight >}}
+
+{{< paragraph class="language-yaml" >}}
+Such a `resource_hint` attribute can also be placed on the top-level pipeline
Review Comment:
```suggestion
Such a `resource_hints` attribute can also be placed on the top-level
pipeline
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]