StreamInfo
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | /* * Input parameters: * name: resource name (or type name). If reuse_key is empty, this field is used as a resource reuse key. * reuse_key: resource reuse key. Resources with the same key are reused (shared) to optimize memory or computing resource allocation. * depend_value_input_indices: Index list of dependent input values, indicating the input tensor values on which the creation or allocation of the resources depends. * required: whether a resource is mandatory. If the value is true, the resource must be successfully allocated. Otherwise, the verification fails. * * Output parameter description: * is_valid: resource allocation status flag. The value true indicates that the resource has been successfully allocated and is available. The value false indicates that the allocation fails or is not performed. * stream_id: stream ID used for resource allocation. It is used to specify the execution stream (such as the compute stream and memory stream) in which resource operations are performed. */ struct StreamInfo { ge::AscendString name; // Resource name (or type name) ge::AscendString reuse_key; // Resource reuse key (reuse of resources with the same key) std::vector<int64_t> depend_value_input_indices; // Index list of dependent input values bool required{true}; // Whether the resource is mandatory bool is_valid{false}; // Resource allocation validity status int64_t stream_id{-1}; // Stream ID used for resource allocation }; |
Parent topic: gert Namespace