syft.generic.pointers.callable_pointer¶
Module Contents¶
-
class
syft.generic.pointers.callable_pointer.CallablePointer(location: BaseWorker = None, id_at_location: Union[str, int] = None, owner: BaseWorker = None, id: Union[str, int] = None, garbage_collect_data: bool = True, point_to_attr: str = None, tags: List[str] = None, description: str = None)¶ Bases:
syft.generic.pointers.object_pointer.ObjectPointerA class of pointers that are callable
A CallablePointer is an ObjectPointer which implements the __call__ function. This lets you execute a command directly on the object to which it points.
-
__call__(self, *args, **kwargs)¶
-
-
syft.generic.pointers.callable_pointer.create_callable_pointer(location: BaseWorker, id: str or int, id_at_location: str or int, owner: BaseWorker, tags, description, garbage_collect_data: bool = True, register_pointer: bool = True) → ObjectPointer¶ Creates a callable pointer to the object identified by the pair (location, id_at_location).
Note, that there is no check whether an object with this id exists at the location.
- Parameters
location –
id –
id_at_location –
owner –
tags –
description –
garbage_collect_data –
register_pointer –
Returns: