yr.MethodProxy

Contents

yr.MethodProxy#

class yr.MethodProxy(instance, instance_id, method_descriptor, sig, return_nums=1, function_id='', is_async=False, instance_name='', namespace='', tensor_transport_target='', enable_tensor_transport=False)[source]#

Bases: object

Use to decorate a user class method.

Initialize the MethodProxy instance.

Methods

__init__

Initialize the MethodProxy instance.

invoke

Execute remote invoke to user functions.

options

Set user invoke options.