• Home
  • Raw
  • Download

Lines Matching full:delegate

97 fill_operation(struct teflon_delegate *delegate, TfLiteContext *tf_context, TfLiteNode *node, TfLit…  in fill_operation()  argument
186 fill_tensor(struct teflon_delegate *delegate, TfLiteContext *tf_context, struct pipe_tensor *tensor… in fill_tensor() argument
188 struct pipe_context *context = delegate->context; in fill_tensor()
289 struct teflon_delegate *delegate = (struct teflon_delegate *)params->delegate; in partition_init() local
290 struct pipe_context *context = delegate->context; in partition_init()
305 fill_tensor(delegate, tf_context, &tensors[i], i); in partition_init()
315 …fill_operation(delegate, tf_context, delegated_node, delegated_node_registration, &operations[i], … in partition_init()
382 struct teflon_delegate *delegate = (struct teflon_delegate *)node->delegate; in partition_invoke() local
385 struct pipe_context *context = delegate->context; in partition_invoke()
492 PrepareDelegate(TfLiteContext *context, TfLiteDelegate *delegate) in PrepareDelegate() argument
618 registration.custom_name = "Teflon Delegate"; in PrepareDelegate()
625 delegate); in PrepareDelegate()
634 TfLiteDelegate *delegate, in CopyFromBufferHandle() argument
643 TfLiteDelegate *delegate, in FreeBufferHandle() argument
653 void tflite_plugin_destroy_delegate(TfLiteDelegate *delegate);
660 struct teflon_delegate *delegate = (struct teflon_delegate *)calloc(1, sizeof(*delegate)); in tflite_plugin_create_delegate() local
664delegate->base.flags = kTfLiteDelegateFlagsAllowDynamicTensors | kTfLiteDelegateFlagsRequirePropag… in tflite_plugin_create_delegate()
665 delegate->base.Prepare = &PrepareDelegate; in tflite_plugin_create_delegate()
666 delegate->base.CopyFromBufferHandle = &CopyFromBufferHandle; in tflite_plugin_create_delegate()
667 delegate->base.FreeBufferHandle = &FreeBufferHandle; in tflite_plugin_create_delegate()
675 delegate->dev = devs[i]; in tflite_plugin_create_delegate()
681 if (delegate->dev == NULL) { in tflite_plugin_create_delegate()
686 teflon_debug("Teflon delegate: loaded %s driver\n", delegate->dev->driver_name); in tflite_plugin_create_delegate()
688 screen = pipe_loader_create_screen(delegate->dev, false); in tflite_plugin_create_delegate()
689 delegate->context = screen->context_create(screen, NULL, PIPE_CONTEXT_COMPUTE_ONLY); in tflite_plugin_create_delegate()
691 return &delegate->base; in tflite_plugin_create_delegate()
696 struct teflon_delegate *delegate = (struct teflon_delegate *)tflite_delegate; in tflite_plugin_destroy_delegate() local
700 fprintf(stderr, "tflite_plugin_destroy_delegate: NULL delegate!\n"); in tflite_plugin_destroy_delegate()
704 screen = delegate->context->screen; in tflite_plugin_destroy_delegate()
705 delegate->context->destroy(delegate->context); in tflite_plugin_destroy_delegate()
707 pipe_loader_release(&delegate->dev, 1); in tflite_plugin_destroy_delegate()
708 free(delegate); in tflite_plugin_destroy_delegate()