2.1.2.1.2. aijack.defense.debugging.neuroncoverage package#

2.1.2.1.2.1. Submodules#

2.1.2.1.2.2. aijack.defense.debugging.neuroncoverage.neuroncoverage module#

class aijack.defense.debugging.neuroncoverage.neuroncoverage.NeuronCoverageTracker(model, dummy_data, threshold=0.9, device='cpu')[source]#

Bases: object

coverage(dataloader, pos_of_x=0, initialize=True, update=True)[source]#
aijack.defense.debugging.neuroncoverage.neuroncoverage.get_intermediate_outputs(model, data, module, force_relu=True)[source]#
aijack.defense.debugging.neuroncoverage.neuroncoverage.get_layer_output_sizes(model, layer_dict, data)[source]#
aijack.defense.debugging.neuroncoverage.neuroncoverage.get_model_layers(model, cross_section_size=0)[source]#
aijack.defense.debugging.neuroncoverage.neuroncoverage.scale(out, dim=- 1, rmax=1, rmin=0)[source]#
aijack.defense.debugging.neuroncoverage.neuroncoverage.step_through_model(model, prefix='')[source]#

2.1.2.1.2.3. Module contents#