Update comment based on feedback

Signed-off-by: Yong Tang <yong.tang.github@outlook.com>
This commit is contained in:
Yong Tang 2018-12-03 16:57:57 +00:00
parent 28e034bd29
commit a02c524cb3

View File

@ -88,7 +88,7 @@ class SparseDenseBinaryOpShared : public OpKernel {
const auto rhs_dims = BCast::FromShape(dense_t->shape()); const auto rhs_dims = BCast::FromShape(dense_t->shape());
BCast b(lhs_dims, rhs_dims, false); // false for keeping the same num dims. BCast b(lhs_dims, rhs_dims, false); // false for keeping the same num dims.
// True iff (size(lhs) >= size(rhs)) and all dims in lhs is smaller or equal // True iff (size(lhs) >= size(rhs)) and all dims in lhs is greater or equal
// to dims in rhs (from right to left). // to dims in rhs (from right to left).
auto VecGreaterEq = [](ArraySlice<int64> lhs, ArraySlice<int64> rhs) { auto VecGreaterEq = [](ArraySlice<int64> lhs, ArraySlice<int64> rhs) {
if (lhs.size() < rhs.size()) return false; if (lhs.size() < rhs.size()) return false;