Skip to content

Commit

Permalink
Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
reyna-abhyankar committed Aug 22, 2024
1 parent 02cc5bf commit 481c308
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ struct FwdBwdTaskImplFunction {

bool operator==(FwdBwdTaskImplFunction const &) const;
bool operator!=(FwdBwdTaskImplFunction const &) const;
bool operator<(FwdBwdTaskImplFunction const &) const;
};

std::string format_as(FwdBwdTaskImplFunction const &x);
Expand Down
7 changes: 6 additions & 1 deletion lib/local-execution/src/fwd_bwd_task_impl_function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ bool FwdBwdTaskImplFunction::operator!=(
return this->function_ptr != other.function_ptr;
}

bool FwdBwdTaskImplFunction::operator<(
FwdBwdTaskImplFunction const &other) const {
return this->function_ptr < other.function_ptr;
}

std::string format_as(FwdBwdTaskImplFunction const &x) {
std::ostringstream oss;
oss << "<FwdBwdTaskImplFunction";
oss << " function_ptr=" << (void *)x.function_ptr;
oss << " function_ptr=" << reinterpret_cast<void *>(x.function_ptr);
oss << ">";
return oss.str();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/local-execution/src/init_task_impl_function.cc
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ bool InitTaskImplFunction::operator!=(InitTaskImplFunction const &other) const {
std::string format_as(InitTaskImplFunction const &x) {
std::ostringstream oss;
oss << "<InitTaskImplFunction";
oss << " function_ptr=" << (void *)x.function_ptr;
oss << " function_ptr=" << reinterpret_cast<void *>(x.function_ptr);
oss << ">";
return oss.str();
}
Expand Down
2 changes: 0 additions & 2 deletions lib/local-execution/src/ops/input.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "input.h"
#include "local-execution/op_task_invocation.h"
#include "utils/hash-utils.h"

namespace FlexFlow {

Expand Down
1 change: 0 additions & 1 deletion lib/local-execution/src/ops/noop.cc
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
*/

#include "noop.h"
#include "utils/hash-utils.h"

namespace FlexFlow {

Expand Down
2 changes: 0 additions & 2 deletions lib/local-execution/src/ops/weight.cc
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#include "weight.h"
#include "local-execution/op_task_invocation.h"
#include "utils/hash-utils.h"

namespace FlexFlow {

Expand Down

0 comments on commit 481c308

Please sign in to comment.