code stringlengths 3 6.57k |
|---|
trtorch._C.InputRange() |
list(i) |
list(i) |
list(i) |
parsed_input_sizes.append(in_range) |
_parse_op_precision(precision: Any) |
isinstance(precision, torch.dtype) |
TypeError("Provided an unsupported dtype as operating precision (support: int8, half, float) |
str(precision) |
isinstance(precision, _types.DataTypes) |
str(type(precision) |
_parse_device_type(device: Any) |
isinstance(device, torch.device) |
ValueError("Got a device type other than GPU or DLA (type: " + str(device.type) |
isinstance(device, _types.DeviceType) |
isinstance(device, str) |
ValueError("Got a device type other than GPU or DLA (type: " + str(device) |
str(type(device) |
_parse_compile_spec(compile_spec: Dict[str, Any]) |
trtorch._C.CompileSpec() |
sizes (min, opt, max) |
_parse_input_ranges(compile_spec["input_shapes"]) |
_parse_op_precision(compile_spec["op_precision"]) |
isinstance(compile_spec["refit"], bool) |
isinstance(compile_spec["debug"], bool) |
isinstance(compile_spec["strict_types"], bool) |
isinstance(compile_spec["allow_gpu_fallback"], bool) |
_parse_device_type(compile_spec["device_type"]) |
isinstance(compile_spec["capability"], _types.EngineCapability) |
type(compile_spec["num_min_timing_iters"]) |
type(compile_spec["num_avg_timing_iters"]) |
type(compile_spec["workspace_size"]) |
type(compile_spec["max_batch_size"]) |
TensorRTCompileSpec(compile_spec: Dict[str, Any]) |
compile_spec (dict) |
torch.device("cuda") |
on (for DLA use trtorch.DeviceType.DLA) |
size (must be >= 1 to be set, 0 means not set) |
_parse_compile_spec(compile_spec) |
torch.classes.tensorrt.CompileSpec() |
torch.classes.tensorrt.InputRange() |
ir.set_min(i.min) |
ir.set_opt(i.opt) |
ir.set_max(i.max) |
backend_spec.append_input_range(ir) |
backend_spec.set_op_precision(int(parsed_spec.op_precision) |
backend_spec.set_refit(parsed_spec.refit) |
backend_spec.set_debug(parsed_spec.debug) |
backend_spec.set_refit(parsed_spec.refit) |
backend_spec.set_strict_types(parsed_spec.strict_types) |
backend_spec.set_allow_gpu_fallback(parsed_spec.allow_gpu_fallback) |
backend_spec.set_device(int(parsed_spec.device) |
backend_spec.set_capability(int(parsed_spec.capability) |
backend_spec.set_num_min_timing_iters(parsed_spec.num_min_timing_iters) |
backend_spec.set_num_avg_timing_iters(parsed_spec.num_avg_timing_iters) |
backend_spec.set_workspace_size(parsed_spec.workspace_size) |
backend_spec.set_max_batch_size(parsed_spec.max_batch_size) |
url(r'^appointment/(?P<practice_id>\d+) |
url(r'^appointment/created/(?P<practice_id>\d+) |
Display() |
__init__(self, disp) |
Image.new('1', self.dimensions) |
ImageDraw.Draw(self.image) |
ImageFont.truetype("./DejaVuSansMono.ttf", 10) |
display_clear(self) |
self.draw.rectangle((0, 0) |
init_display(self) |
self.disp.begin() |
self.disp.clear() |
self.disp.display() |
self.display_clear() |
self.disp.image(self.image) |
self.disp.display() |
draw_rows(self, rows, inv_col) |
self.display_clear() |
enumerate(rows) |
self.draw.rectangle([(0, 10 * idx) |
self.draw.text((1, 10 * idx) |
self.draw.rectangle([(0, 10 * idx) |
self.draw.text((1, 10 * idx) |
self.disp.image(self.image) |
self.disp.display() |
Menu() |
__init__(self, disp, encoder, items = []) |
Display(disp) |
self.disp.init_display() |
self.draw() |
encoder_ev (direction) |
self.prev() |
self.next() |
self.exec_item() |
RotaryEncoder(encoder["pin1"], encoder["pin2"], encoder["sw"], encoder_ev) |
draw(self) |
self.disp.draw_rows(tmp_slice, self.row) |
self.disp.draw_rows(self.last_slice, self.row) |
next(self) |
len(self.items) |
self.draw() |
prev(self) |
self.draw() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.