- In
/opt/cuda/include/crt/host_config.h, commenterrorfor skipping GCC version checking:
#if __GNUC__ > 6
//#error -- unsupported GNU version! gcc versions later than 6 are not supported!
#endif /* __GNUC__ > 6 */
/opt/cuda/include/crt/host_config.h, comment error for skipping GCC version checking:#if __GNUC__ > 6
//#error -- unsupported GNU version! gcc versions later than 6 are not supported!
#endif /* __GNUC__ > 6 */
| //<![CDATA[ | |
| // a few things don't have var in front of them - they update already existing variables the game needs | |
| lanesSide = 3; | |
| patchesAhead = 50; | |
| patchesBehind = 10; | |
| trainIterations = 300000; | |
| // the number of other autonomous vehicles controlled by your network | |
| otherAgents = 3; // max of 9 |
| import os | |
| import time | |
| from flask import Flask, jsonify, request, redirect, url_for, send_file, make_response | |
| from flask_cors import CORS, cross_origin | |
| from options.test_options import TestOptions | |
| from data.data_loader import CreateDataLoader | |
| from models.models import create_model | |
| import util.util as util |
| import os | |
| from options.test_options import TestOptions | |
| from data.data_loader import CreateDataLoader | |
| from models.models import create_model | |
| import util.util as util | |
| if __name__ == "__main__": | |
| if not os.path.exists('results'): |
| import os | |
| import time | |
| from flask import Flask, jsonify, request, redirect, url_for, send_file, make_response | |
| from flask_cors import CORS, cross_origin | |
| # Config | |
| app = Flask(__name__) | |
| CORS(app) | |
| app.config['UPLOAD_FOLDER'] = os.path.join(os.getcwd(), 'upload') |
| #include <bits/stdc++.h> | |
| typedef unsigned int u; | |
| // String | |
| typedef string S | |
| // Array | |
| typedef S size | |
| typedef PB push_back |
| package main | |
| import ( | |
| "database/sql" | |
| "encoding/json" | |
| "fmt" | |
| "io" | |
| "log" | |
| "net/http" | |
| "os" |
| # spawn a new process | |
| ponger = spawn(fn -> | |
| receive do | |
| {:ping, sender} -> | |
| IO.puts "Ping" | |
| send sender, :pong | |
| end | |
| end) | |
| # send a :ping message to new process |
| import time | |
| import math | |
| import string | |
| from utils import Util | |
| from rnn import RNN, Model | |
| def category_from_output(all_categories, output): | |
| # Get index of greatest value | |
| top_n, top_i = output.data.topk(1) |