Skip to content

Commit

Permalink
Fix comment
Browse files Browse the repository at this point in the history
Signed-off-by: Min, Byungil <[email protected]>
  • Loading branch information
byungilm committed Apr 9, 2021
1 parent b6da112 commit 9698990
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,10 @@ bool EltwiseKernel_vload8::Validate(const Params& params, const optional_params&
}
if ((ewParams.output.GetLayout() == DataLayout::b_fs_yx_fsv16 && ewParams.output.Feature().v % 16 != 0) ||
(ewParams.output.GetLayout() == DataLayout::b_fs_zyx_fsv16 && ewParams.output.Feature().v % 16 != 0) ||
(ewParams.output.GetLayout() == DataLayout::b_fs_yx_fsv4 && ewParams.output.Feature().v % 8 != 0) ||
ewParams.output.GetLayout() == DataLayout::fs_b_yx_fsv32)
return false;

if ((ewParams.output.GetLayout() == DataLayout::b_fs_yx_fsv4) && (ewParams.output.Feature().v % 8 != 0))
return false;

const auto& output = ewParams.output;
const auto count = output.PhysicalSize();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,8 @@ bool CheckInputsOutputNoPitchSameDims(const base_params& params) {
};

if (params.inputs.size()) {
no_pitch_same_dims = !params.inputs[0].PitchesDifferFromLogicalDims();
for (const auto& layout : block_layouts) {
no_pitch_same_dims = !params.inputs[0].PitchesDifferFromLogicalDims();

if (params.fused_ops.size()) {
for (auto fused_op : params.fused_ops) {
for (size_t in = 0; in < fused_op.tensors.size(); in++) {
Expand Down

0 comments on commit 9698990

Please sign in to comment.