code stringlengths 3 6.57k |
|---|
deserialize_args(args) |
len(args) |
len(args) |
get_const_tuple(data.shape) |
get_const_tuple(kernel.shape) |
get_config() |
_create_tuning_space_int8(cfg, data, kernel, strides, padding, dilation, origin_layout) |
tvm.placeholder(new_data_shape, data.dtype) |
tvm.placeholder(new_kernel_shape, kernel.dtype) |
_schedule_conv2d_NCHWc_int8(cfg, [C]) |
autotvm.register_topi_compute(conv2d_NCHWc_int8, 'cpu', 'direct') |
autotvm.register_topi_schedule(generic.schedule_conv2d_NCHWc_int8, 'cpu', ['direct']) |
_schedule_conv2d_NCHWc_int8(cfg, outs) |
tvm.create_schedule([x.op for x in outs]) |
traverse(op) |
stage (output) |
tag.is_broadcast(op.tag) |
compute_inline() |
isinstance(tensor.op, tvm.tensor.ComputeOp) |
traverse(tensor.op) |
op.output(0) |
isinstance(data_vec.op, tvm.tensor.ComputeOp) |
isinstance(data.op, tvm.tensor.ComputeOp) |
tvm.target.current_target(allow_none=False) |
get_const_tuple(kernel.shape) |
conv2d_avx_1x1._schedule_conv_NCHWc_int8(*args) |
conv2d_avx_common._schedule_conv_NCHWc_int8(*args) |
scheduled_ops.append(op) |
traverse(outs[0].op) |
autotvm.register_topi_schedule(generic.schedule_conv2d_nhwc_pack, 'cpu', ['direct']) |
schedule_conv2d_nhwc_pack(cfg, outs) |
tvm.create_schedule([x.op for x in outs]) |
traverse(op) |
stage (output) |
tag.is_broadcast(op.tag) |
compute_inline() |
len(op.axis) |
fuse(n, h, w) |
parallel(fused) |
vectorize(c) |
isinstance(tensor.op, tvm.tensor.ComputeOp) |
traverse(tensor.op) |
op.output(0) |
isinstance(data_vec.op, tvm.tensor.ComputeOp) |
isinstance(data.op, tvm.tensor.ComputeOp) |
get_const_tuple(kernel.shape) |
conv2d_avx_1x1._schedule_conv_nhwc_pack_int8(*args) |
format(data.dtype) |
scheduled_ops.append(op) |
traverse(output_op) |
os.path.dirname(os.path.realpath(__file__) |
sys.path.insert(1, os.path.join(_CODEDIR, '.') |
os.path.join(_CODEDIR, 'features.json') |
os.path.join(_CODEDIR, 'stat_vars.csv') |
os.path.join(_CODEDIR, 'testdata') |
os.path.join(_CODEDIR, 'output.tmcf') |
ProcessTest(unittest.TestCase) |
test_convert_column_to_stat_var(self) |
open(_FEATURES) |
json.load(f) |
f.close() |
income (dollars) |
test_create_csv(self) |
open(_FEATURES) |
json.load(f) |
f.close() |
open(_STAT_VAR_LIST) |
f.read() |
splitlines() |
f.close() |
tempfile.TemporaryDirectory() |
os.path.join(tmp_dir, 'test_csv.csv') |
create_csv(test_csv, stat_vars) |
range(2010, 2020) |
open(os.path.join(_TEST_DATA, filename) |
csv.DictReader(f) |
write_csv(filename, reader, test_csv, features, stat_vars) |
open(test_csv) |
f_result.read() |
open(os.path.join(_TEST_DATA, 'expected.csv') |
f_test.read() |
self.assertEqual(test_result, expected) |
os.remove(test_csv) |
test_create_tmcf(self) |
open(_FEATURES) |
json.load(f) |
f.close() |
open(_STAT_VAR_LIST) |
f.read() |
splitlines() |
f.close() |
tempfile.TemporaryDirectory() |
os.path.join(tmp_dir, 'test_tmcf.tmcf') |
create_tmcf(test_tmcf, features, stat_vars) |
open(test_tmcf) |
f_result.read() |
open(_EXPECTED_TMCF) |
f_test.read() |
self.assertEqual(test_result, expected) |
os.remove(test_tmcf) |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.