File tree Expand file tree Collapse file tree 1 file changed +0
-22
lines changed
lib/llm/src/preprocessor/media Expand file tree Collapse file tree 1 file changed +0
-22
lines changed Original file line number Diff line number Diff line change @@ -11,28 +11,6 @@ pub struct EncodedMediaData {
1111 pub ( crate ) b64_encoded : bool ,
1212}
1313
14- // Decoded media data (image RGB, video frames pixels, ...)
15- pub struct DecodedMediaData {
16- data : SystemStorage ,
17- shape : Vec < usize > ,
18- dtype : String ,
19- }
20-
21- // Decoded media data NIXL descriptor (sent to the next step in the pipeline / NATS)
22- #[ derive( Serialize , Deserialize , Clone , Debug ) ]
23- pub struct RdmaMediaDataDescriptor {
24- // b64 agent metadata
25- nixl_metadata : String ,
26- // tensor descriptor
27- nixl_descriptor : NixlStorage ,
28- shape : Vec < usize > ,
29- dtype : String ,
30- // reference to the actual data, kept alive while the rdma descriptor is alive
31- #[ serde( skip, default ) ]
32- #[ allow( dead_code) ]
33- source_storage : Option < Arc < SystemStorage > > ,
34- }
35-
3614impl EncodedMediaData {
3715 // Handles both web URLs (will download the bytes) and data URLs (will keep b64-encoded)
3816 // This function is kept in tokio runtime so we do not want any expensive operations
You can’t perform that action at this time.
0 commit comments