![]() |
Constructs a TFF data
computation with the given URI and TFF type.
tff.data(
uri: str,
type_spec: tff.types.Type
)
Args | |
---|---|
uri
|
A string (str ) URI of the data.
|
type_spec
|
An instance of tff.Type that represents the type of this data.
|
Returns | |
---|---|
A representation of the data with the given URI and TFF type in the body of a federated computation. |
Raises | |
---|---|
TypeError
|
If the arguments are not of the types specified above. |