Skip to content

Commit

Permalink
Merge pull request #33008 from xinan-jiang:typo/export_test
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 272982603
  • Loading branch information
tensorflower-gardener committed Oct 5, 2019
2 parents b6120fb + dc61b0c commit 8503493
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tensorflow/lite/toco/tflite/export_test.cc
Expand Up @@ -508,8 +508,8 @@ TEST_F(OpSetsTest, BuiltinsAndTfSelect) {
}

// This test is based on a hypothetical scenario that dilation is supported
// only in Conv version 2. So Toco populates version=1 when dialation
// parameters are all 1, and version=2 otherwise.
// only in Conv version 2. So Toco populates version=1 when dilation parameters
// are all 1, and version=2 otherwise.
class FakeConvolutionOperator
: public BuiltinOperator<ConvOperator, ::tflite::Conv2DOptions,
::tflite::BuiltinOptions_Conv2DOptions> {
Expand Down Expand Up @@ -566,7 +566,7 @@ class VersionedOpExportTest : public ::testing::Test {
input_model_.GetOrCreateArray("filter");
input_model_.GetOrCreateArray("output");
}
void AddConvOp(bool use_dialation) {
void AddConvOp(bool use_dilation) {
{
auto* op = new ConvOperator;
op->inputs.push_back("input");
Expand All @@ -576,7 +576,7 @@ class VersionedOpExportTest : public ::testing::Test {
op->padding.type = PaddingType::kSame;
op->stride_width = 1;
op->stride_height = 1;
if (use_dialation) {
if (use_dilation) {
op->dilation_width_factor = 2;
op->dilation_height_factor = 2;
} else {
Expand Down

0 comments on commit 8503493

Please sign in to comment.