v0.7 Beta - NVIDIA GTC April 2021 Release
Update to v0.7 Beta
This commit is contained in:
@@ -20,6 +20,13 @@
|
||||
# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
#
|
||||
###############################################################################*/
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <algorithm>
|
||||
#include <chrono>
|
||||
#include <cmath>
|
||||
@@ -174,6 +181,12 @@ static int StringToFourcc(const std::string &str) {
|
||||
********************************************************************************/
|
||||
|
||||
static int ParseMyArgs(int argc, char **argv) {
|
||||
// query NVAR_MODEL_DIR environment variable first before checking the command line arguments
|
||||
const char* modelPath = getenv("NVAR_MODEL_DIR");
|
||||
if (modelPath) {
|
||||
FLAG_modelPath = modelPath;
|
||||
}
|
||||
|
||||
int errs = 0;
|
||||
for (--argc, ++argv; argc--; ++argv) {
|
||||
bool help;
|
||||
|
||||
Reference in New Issue
Block a user