This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import numba | |
import numba.cuda | |
import numpy as np | |
@numba.jitclass([ | |
("x", numba.types.int32) | |
]) | |
class XYZ: | |
def __init__(self, x): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
from io import BytesIO | |
from PIL import Image | |
import numpy as np | |
import timeit | |
import torch | |
from maskrcnn_benchmark.config import cfg | |
from predictor import COCODemo, to_image_list |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import argparse | |
import torch.backends.cudnn as cudnn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
import torch.utils.data.distributed | |
from torchvision import models | |
import horovod.torch as hvd | |
import timeit |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <assert.h> | |
#include "tmds.h" | |
#include "utils.h" | |
template<int X> | |
ap_uint<log2up(X)> count_ones(ap_uint<X> data) { | |
ap_uint<X> result = data[0]; | |
for (int i = 1; i < 8; i++) { | |
#pragma HLS UNROLL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tmds_pkg; | |
typedef struct packed { | |
logic inv_q_m; | |
logic use_xor; | |
logic [7:0] q_m; | |
} tmds_encoded_t; | |
typedef enum logic [9:0]{ | |
CTRL_00 = 10'b1101010100, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
from hyperopt import Trials, STATUS_OK, tpe | |
from hyperas import optim | |
from hyperas.distributions import choice, uniform, conditional | |
import keras | |
import tensorflow as tf | |
import horovod.keras as hvd | |
import keras.backend as K | |
import math |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import argparse | |
import torch.backends.cudnn as cudnn | |
import torch.nn.functional as F | |
import torch.optim as optim | |
import torch.utils.data.distributed | |
from torchvision import datasets, transforms, models | |
import horovod.torch as hvd | |
import tensorboardX |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import print_function | |
import os | |
import sys | |
import tensorflow as tf | |
from google.protobuf import text_format | |
from tensorflow.python.framework import graph_io | |
if len(sys.argv) < 2: | |
print('Usage: %s <filename prefix>' % sys.argv[0]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2018 Uber Technologies, Inc. All Rights Reserved. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
NewerOlder