Skip to content

Commit 329ded9

Browse files
authored
Fix typos epislon epsilon (#67404)
1 parent 4203039 commit 329ded9

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

cmake/generic.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,7 @@ function(cc_test_old TARGET_NAME)
562562
cmake_parse_arguments(cc_test "${options}" "${oneValueArgs}"
563563
"${multiValueArgs}" ${ARGN})
564564
cc_test_build(${TARGET_NAME} SRCS ${cc_test_SRCS} DEPS ${cc_test_DEPS})
565-
# we donot test hcom op, because it need complex configuration
565+
# we do not test hcom op, because it need complex configuration
566566
# with more than one machine
567567
cc_test_run(${TARGET_NAME} COMMAND ${TARGET_NAME} ARGS ${cc_test_ARGS})
568568
elseif(WITH_TESTING AND NOT TEST ${TARGET_NAME})

test/cpp/inference/api/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# In Windows, c_api test link must link both 2 shared to avoid symbols redefinition,
2-
# in Linux, c_api test cant do like this or graph_to_program register more than once.
2+
# in Linux, c_api test can't do like this or graph_to_program register more than once.
33
# Both Windows and Linux can only use paddle_inference_c, but this will increase size
44
# of build folder by 30G.
55
set(inference_api_tester_deps paddle_inference_api analysis_config)

test/cpp/inference/api/tester_helper.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ void SetFakeImageInput(std::vector<std::vector<PaddleTensor>> *inputs,
389389
std::string model_filename = "model",
390390
std::string params_filename = "params",
391391
const std::vector<std::string> *feed_names = nullptr,
392-
const int continuous_inuput_index = 0) {
392+
const int continuous_input_index = 0) {
393393
// Set fake_image_data
394394
PADDLE_ENFORCE_EQ(FLAGS_test_all_data,
395395
0,
@@ -442,7 +442,7 @@ void SetFakeImageInput(std::vector<std::vector<PaddleTensor>> *inputs,
442442
// fill input data, for profile easily, do not use random data here.
443443
for (size_t j = 0; j < len; ++j) {
444444
*(input_data + j) =
445-
static_cast<float>((j + continuous_inuput_index) % len) / len;
445+
static_cast<float>((j + continuous_input_index) % len) / len;
446446
}
447447
}
448448
(*inputs).emplace_back(input_slots);

test/cpp/inference/infer_ut/test_ernie_xnli_int8.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,10 +64,10 @@ std::shared_ptr<Predictor> InitPredictor() {
6464
// only kHalf supported
6565
config.EnableTensorRtEngine(
6666
1 << 30, 1, 5, Config::Precision::kInt8, false, false);
67-
// erinie varlen must be used with dynamic shape
67+
// ernie varlen must be used with dynamic shape
6868
config.SetTRTDynamicShapeInfo(
6969
min_input_shape, max_input_shape, opt_input_shape);
70-
// erinie varlen must be used with oss
70+
// ernie varlen must be used with oss
7171
config.EnableVarseqlen();
7272
paddle_infer::experimental::InternalUtils::SetTransformerPosid(&config,
7373
input_name2);

test/cpp/inference/infer_ut/test_suite.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void SingleThreadPrediction(paddle_infer::Predictor *predictor,
149149

150150
void CompareRecord(std::map<std::string, Record> *truth_output_data,
151151
std::map<std::string, Record> *infer_output_data,
152-
float epislon = 1e-5) {
152+
float epsilon = 1e-5) {
153153
for (const auto &[key, value] : *infer_output_data) {
154154
auto truth_record = (*truth_output_data)[key];
155155
VLOG(1) << "output name: " << key;
@@ -159,7 +159,7 @@ void CompareRecord(std::map<std::string, Record> *truth_output_data,
159159
VLOG(1) << "compare: " << value.data.data()[i] << ",\t"
160160
<< truth_record.data.data()[i];
161161
ASSERT_LT(fabs(value.data.data()[i] - truth_record.data.data()[i]),
162-
epislon);
162+
epsilon);
163163
}
164164
}
165165
}

test/deprecated/legacy_test/test_lbfgs_deprecated.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ def func(position):
131131
# minimum = (a, a^2)
132132
x, y = position[0], position[1]
133133
c = (a - x) ** 2 + b * (y - x**2) ** 2
134-
# the return cant be np array[1], or in jacobin will cause flat error
134+
# the return can't be np array[1], or in jacobin will cause flat error
135135
return c[0]
136136

137137
x0 = np.random.random(size=[2]).astype('float32')

test/prim/prim/vjp/eager/test_comp_eager_index_add_double_grad.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
np.random.randn(4, 3, 2), # x
2828
np.random.randint(-3, 3, size=(16,)), # index
2929
1, # axis
30-
np.random.randint(0, 3, size=(4, 16, 2)), # valie
30+
np.random.randint(0, 3, size=(4, 16, 2)), # value
3131
np.random.rand(4, 3, 2), # cotangent
3232
np.float32, # dtype
3333
),

0 commit comments

Comments
 (0)