Skip to content

Question of pruning code #6

@suhong1

Description

@suhong1

final_c16 = round(float(nz_c)/16)*16 if round(float(nz_c)/16)*16>0 else 16
if final_c16 > nz_c: #change 0 to 1
ichange_c = final_c16 - nz_c
for c_index in range(c_num):
if sumMask_C[c_index]==0 and ichange_c>0:
param_mask[:,c_index,:,:]=1
ichange_c=ichange_c-1
if final_c16 < nz_c: #change 1 to 0
ichange_c = nz_c - final_c16
for c_index in range(c_num):
if sumMask_C[c_index]== 1 and ichange_c>0:
param_mask[:,c_index,:,:]=0
ichange_c=ichange_c-1

The pruning is not in the papers and documents. What is the use?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions