tff.framework.DataDescriptor
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
Represents fully-specified data-yielding computations.
Inherits From: CardinalityFreeDataDescriptor, Ingestable, TypedObject, CardinalityCarrying
tff.framework.DataDescriptor(
    comp: Optional[tff.Computation],
    arg: object,
    arg_type: tff.types.Type,
    cardinality: Optional[int] = None
)
Similar to CardinalityFreeDataDescriptor, but additionally accepts a
cardinality argument, allowing callers to explcitly specify the number
of clients this data descriptor is intended to represent.
| Args | 
|---|
| comp | The computation that materializes the data, of some type (T -> U)whereTis the type of the argumentargandUis the type of the
materialized data that's being produced. This can beNone, in which
case it's assumed to be an identity function (andTin that case must
be identical toU). | 
| arg | The argument to be passed as input to compifcompis notNone,
or to be treated as the computed result. Must be recognized by the TFF
runtime as a payload of typeT. | 
| arg_type | The type of the argument ( Treferences above). An instance oftff.Type. | 
| cardinality | If of federated type, placed at clients, this int specifies
the number of clients represented by this DataDescriptor. | 
| Raises | 
|---|
| ValueError | if the arguments don't satisfy the constraints listed above. | 
| Attributes | 
|---|
| cardinality | Returns the cardinality information associated with this object. | 
| type_signature | Returns the TFF type of this object (an instance of tff.Type). | 
Methods
ingest
View source
ingest(
    executor
)
Causes this object to ingest itself into the given executor.
| Args | 
|---|
| executor | An instance of executor_base.Executorto ingest into. | 
| Returns | 
|---|
| An instance of executor_value_base.ExecutorValuereturned by the
executor. | 
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2024-09-20 UTC.
  
  
  
    
      [null,null,["Last updated 2024-09-20 UTC."],[],[]]