• Tugrul Savran's avatar
    D2Go Fail Fast: Move exception coming from not implemented "compare accuracy" feature to the top. · eee4dfc1
    Tugrul Savran authored
    Summary:
    Currently, the exporter method takes in a compare_accuracy parameter, which after all the compute (exporting etc.) raises an exception if it is set to True.
    
    This looks like an antipattern, and causes a waste of compute.
    
    Therefore, I am proposing to raise the exception at the very beginning of method call to let the client know in advance that this argument's functionality isn't implemented yet.
    
    NOTE: We might also choose to get rid of the entire parameter. I am open for suggestions.
    
    Differential Revision: D34186578
    
    fbshipit-source-id: d7fbe7589dfe2d2f688b870885ca61e6829c9329
    eee4dfc1
exporter.py 3.94 KB