Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion python/tvm/topi/nn/batch_to_space_nd.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def batch_to_space_nd(data, block_shape, crop_begin_list, crop_end_list):
N-D Tensor with shape [batch, spatial_shape, remaining_shapes],
where spatial_shape has M dimensions.

block_size : list of ints
block_shape : list of ints
list of size [M] where M is number of spatial dims, specifies block
size for each spatial dimension.

Expand Down
8 changes: 8 additions & 0 deletions python/tvm/topi/nn/bitserial_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,18 @@ def bitpack(data, bits, pack_axis, bit_axis, pack_type, name="QuantizeInput"):

Parameters
----------
data : tvm.te.Tensor
The input tvm tensor
bits : int
Number of bits to use for packing
pack_axis : int
index of the axis to pack in data
bit_axis : int
index of axis to place bit axis in resulting packed data
pack_type : str
Data type for packing, must be one of: ['uint8', 'uint16', 'uint32', 'uint64']
name : Optional[str] = "QuantizeInput"
Name for the operation
"""
ishape = data.shape
n = len(ishape)
Expand Down
Loading