Skip to content

Commit

Permalink
@moduledoc => @doc
Browse files Browse the repository at this point in the history
  • Loading branch information
cocoa-xu committed Apr 2, 2023
1 parent d7ae916 commit 29f44f6
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion src/tflite_beam.app.src
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{application, tflite_beam,
[{description, "TensorFlow Lite BEAM binding with optional TPU support."},
{vsn, "0.2.1"},
{vsn, "0.3.0"},
{registered, []},
{applications,
[kernel,
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tflite_beam_coral.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% This module contains libcoral C++ API, which provides
%% convenient functions to perform inferencing and on-device transfer learning
%% with TensorFlow Lite models on [Coral devices](https://coral.ai/products/).
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tflite_beam_error_reporter.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% ErrorReporter to provide reporting destinations.

-module(tflite_beam_error_reporter).
Expand Down
6 changes: 3 additions & 3 deletions src/tflite_beam/tflite_beam_flatbuffer_model.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% An RAII object that represents a read-only tflite model, copied from disk, or
%% mmapped.

Expand Down Expand Up @@ -67,7 +67,7 @@ build_from_file(Filename, Opts) when is_binary(Filename), is_list(Opts) ->
%% ==== Positional Parameters ====
%% @param Filename Path to the .tflite file.
%%
%% @return `invalid` in case of failure.
%% @return `invalid' in case of failure.
-spec verify_and_build_from_file(list() | binary()) -> #tflite_beam_flatbuffer_model{} | {error, binary()}.
verify_and_build_from_file(Filename) when is_list(Filename) ->
verify_and_build_from_file(unicode:characters_to_binary(Filename), []);
Expand All @@ -83,7 +83,7 @@ verify_and_build_from_file(Filename) when is_binary(Filename) ->
%% ==== Keyword Parameters ====
%% @param error_reporter Error reporter.
%%
%% @return `invalid` in case of failure.
%% @return `invalid' in case of failure.
-spec verify_and_build_from_file(list() | binary(), list()) -> #tflite_beam_flatbuffer_model{} | invalid | {error, binary()}.
verify_and_build_from_file(Filename, Opts) when is_list(Filename), is_list(Opts) ->
verify_and_build_from_file(unicode:characters_to_binary(Filename), Opts);
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tflite_beam_interpreter.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% An interpreter for a graph of nodes that input and output from tensors.

-module(tflite_beam_interpreter).
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tflite_beam_interpreter_builder.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% Build an interpreter capable of interpreting model.

-module(tflite_beam_interpreter_builder).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% This built-in op resolver provides a list of TfLite delegates that could be
%% applied by TfLite interpreter by default.

Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tflite_beam_tensor.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% A typed multi-dimensional array used in Tensorflow Lite.

-module(tflite_beam_tensor).
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tokenizer/tflite_beam_basic_tokenizer.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% Runs basic tokenization such as punctuation spliting, lower casing.
%%
%% Related link: https://github.com/tensorflow/examples/blob/master/lite/examples/bert_qa/ios/BertQACore/Models/Tokenizers/BasicTokenizer.swift
Expand Down
2 changes: 1 addition & 1 deletion src/tflite_beam/tokenizer/tflite_beam_full_tokenizer.erl
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% Runs end-to-end tokenization.
%%
%% Related link: https://github.com/tensorflow/examples/blob/master/lite/examples/bert_qa/ios/BertQACore/Models/Tokenizers/FullTokenizer.swift
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
%% @moduledoc
%% @doc
%% Runs WordPiece tokenziation.

-module(tflite_beam_wordpiece_tokenizer).
Expand Down

0 comments on commit 29f44f6

Please sign in to comment.