Skip to content

Fix typos of fuction to function #100

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: r1.15.5+nv23.03
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions tensorflow/core/util/mkl_util.h
Original file line number Diff line number Diff line change
@@ -1930,7 +1930,7 @@ class MklPrimitiveFactory {
!port::TestCPUFeature(port::CPUFeature::AVX2));
}

/// Fuction to check whether primitive memory optimization is enabled
/// Function to check whether primitive memory optimization is enabled
static inline bool IsPrimitiveMemOptEnabled() {
bool is_primitive_mem_opt_enabled = true;
TF_CHECK_OK(ReadBoolFromEnvVar("TF_MKL_OPTIMIZE_PRIMITIVE_MEMUSE", true,
@@ -2107,7 +2107,7 @@ class MklReorderPrimitiveFactory : public MklPrimitiveFactory<T> {
}
};

/// Fuction to find(or create) a reorder from memory pointed by
/// Function to find(or create) a reorder from memory pointed by
/// from to memory pointed by to, it will created primitive or
/// get primitive from pool if it is cached.
/// Returns the primitive.
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
==============================================================================*/
// TODO(b/121324430): Add test for DebugLog fuctions
// TODO(b/121324430): Add test for DebugLog functions
// TODO(b/121275099): Remove dependency on debug_log once the platform supports
// printf

2 changes: 1 addition & 1 deletion tensorflow/lite/kernels/internal/quantization_util.cc
Original file line number Diff line number Diff line change
@@ -372,7 +372,7 @@ void FakeQuantizeArray(const float nudged_scale, const float nudged_min,

bool CheckedLog2(const float x, int* log2_result) {
// Using TfLiteRound instead of std::round and std::log instead of
// std::log2 to work around these fuctions being missing in a toolchain
// std::log2 to work around these functions being missing in a toolchain
// used in some TensorFlow tests as of May 2018.
const float x_log2 = std::log(x) * (1.0f / std::log(2.0f));
const float x_log2_rounded = TfLiteRound(x_log2);
Original file line number Diff line number Diff line change
@@ -936,7 +936,7 @@ def _make_execution_function_with_cloning(model, mode):
distributed_model = get_distributed_model(model, mode)
assert distributed_model

# Also create an execution fuction on that distributed model.
# Also create an execution function on that distributed model.
if context.executing_eagerly():
distributed_function = _make_eager_execution_function(model, mode)
else: