-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compiler FE: Remove optimization "--all" #5780
Comments
CC @samsung/ONE |
As a suggestion, what if we provide the As you might expect, it's kind of a group of optimization options. Probably the most stable optimizations are reflected in In addition, options such as |
Thanks! I'll add another issue for this, as this issue is just about removing |
Where
if(NOT DEFINED NO_OPTIMIZE_${RECIPE})
# Generate optimized .circle
add_custom_command(OUTPUT ${OPT_CIRCLE_OUTPUT_PATH}
COMMAND $<TARGET_FILE:circle2circle> --all ${CIRCLE_OUTPUT_PATH} ${OPT_CIRCLE_OUTPUT_PATH}
DEPENDS $<TARGET_FILE:circle2circle> ${CIRCLE_OUTPUT_PATH}
COMMENT "Generate ${OPT_CIRCLE_FILE}"
)
set(OPT_FORMAT ".opt")
list(APPEND TEST_DEPS ${OPT_CIRCLE_OUTPUT_PATH})
endif()
if(NOT DEFINED NO_OPTIMIZE_${RECIPE})
# Generate optimized .circle
add_custom_command(OUTPUT ${OPT_CIRCLE_OUTPUT_PATH}
COMMAND $<TARGET_FILE:circle2circle> --all ${CIRCLE_OUTPUT_PATH} ${OPT_CIRCLE_OUTPUT_PATH}
DEPENDS $<TARGET_FILE:circle2circle> ${CIRCLE_OUTPUT_PATH}
COMMENT "Generate ${OPT_CIRCLE_FILE}"
)
set(OPT_FORMAT ".opt")
list(APPEND TEST_DEPS ${OPT_CIRCLE_OUTPUT_PATH})
endif()
|
Current if (arser.get<bool>("--all"))
{
options->enable(Algorithms::FuseBCQ);
options->enable(Algorithms::FuseInstanceNorm);
options->enable(Algorithms::ResolveCustomOpAdd);
options->enable(Algorithms::ResolveCustomOpBatchMatMul);
options->enable(Algorithms::ResolveCustomOpMatMul);
options->enable(Algorithms::RemoveRedundantTranspose);
options->enable(Algorithms::SubstitutePackToReshape);
} For backward compatibility with the test, I want to give an name to replace Another thought is to refactor dredd tests... problem is one |
@seanshpark How about renaming |
That is one good suggestion. |
I can't find any good name for current |
done |
The
--all
option was first introduced to enable all the optimization options but currently it didn't turned out that way.To add new option to the
all
maybe risky in terms of stability.As of result,
all
misleads that one may expect it will do all optimizations but actually it doesn't.I think it would be better to remove this
all
option and provide some more specific group of options as an alias.I'd like to know if there are any problems before just removing this option.
If there is no comments about a week, I'll go on removing them.
The text was updated successfully, but these errors were encountered: