Skip to content
  • Scott Wegner's avatar
    Support dict-like syntax for extracting values from federated values by key. · 2ece44d6
    Scott Wegner authored
    This is a convenience for working with values within a federated computation. Now, individual values can be extracted from the structure using:
    
      val = my_federated_computation()
      another_federated_computation(val['foo'])
    
    This is already possible using `getattr(val, 'foo')`; this change makes the existing functionality more discoverable.
    
    PiperOrigin-RevId: 299975964
    2ece44d6