Skip to content

Commit

Permalink
[TFTRT] Add Dynamic Shape Testing for ConvertConv3D
Browse files Browse the repository at this point in the history
  • Loading branch information
DEKHTIARJonathan committed Feb 23, 2021
1 parent 7ca8021 commit 20f5356
Show file tree
Hide file tree
Showing 2 changed files with 237 additions and 169 deletions.
7 changes: 7 additions & 0 deletions tensorflow/compiler/tf2tensorrt/convert/convert_nodes.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3318,6 +3318,13 @@ Status ConvertConv3DHelper(OpConverterParams* params, int group,
}
}

// Channel dim must be static for Conv3D since we use that value for
// num_groups at build time.
if (tensor->getDimensions().d[c_index] == -1) {
return errors::InvalidArgument("Channel dimension must be static, at ",
node_def.name());
}

// Finished validation checks
if (params->validation_only) return Status::OK();

Expand Down

0 comments on commit 20f5356

Please sign in to comment.