SYMBOL INDEX (986 symbols across 88 files) FILE: inference.py function main (line 38) | def main(): function generate_logits (line 176) | def generate_logits(model_prime, model, fc, memory, policy, dataloader, ... function dynamic_find_threshold (line 241) | def dynamic_find_threshold(logits, targets, p): function dynamic_evaluate (line 266) | def dynamic_evaluate(logits, targets, flops, T): FILE: models/activations/__init__.py function add_override_act_fn (line 57) | def add_override_act_fn(name, fn): function update_override_act_fn (line 62) | def update_override_act_fn(overrides): function clear_override_act_fn (line 68) | def clear_override_act_fn(): function add_override_act_layer (line 73) | def add_override_act_layer(name, fn): function update_override_act_layer (line 77) | def update_override_act_layer(overrides): function clear_override_act_layer (line 83) | def clear_override_act_layer(): function get_act_fn (line 88) | def get_act_fn(name='relu'): function get_act_layer (line 106) | def get_act_layer(name='relu'): FILE: models/activations/activations.py function swish (line 5) | def swish(x, inplace: bool = False): class Swish (line 11) | class Swish(nn.Module): method __init__ (line 12) | def __init__(self, inplace: bool = False): method forward (line 16) | def forward(self, x): function mish (line 20) | def mish(x, inplace: bool = False): class Mish (line 26) | class Mish(nn.Module): method __init__ (line 27) | def __init__(self, inplace: bool = False): method forward (line 31) | def forward(self, x): function sigmoid (line 35) | def sigmoid(x, inplace: bool = False): class Sigmoid (line 40) | class Sigmoid(nn.Module): method __init__ (line 41) | def __init__(self, inplace: bool = False): method forward (line 45) | def forward(self, x): function tanh (line 49) | def tanh(x, inplace: bool = False): class Tanh (line 54) | class Tanh(nn.Module): method __init__ (line 55) | def __init__(self, inplace: bool = False): method forward (line 59) | def forward(self, x): function hard_swish (line 63) | def hard_swish(x, inplace: bool = False): class HardSwish (line 68) | class HardSwish(nn.Module): method __init__ (line 69) | def __init__(self, inplace: bool = False): method forward (line 73) | def forward(self, x): function hard_sigmoid (line 77) | def hard_sigmoid(x, inplace: bool = False): class HardSigmoid (line 84) | class HardSigmoid(nn.Module): method __init__ (line 85) | def __init__(self, inplace: bool = False): method forward (line 89) | def forward(self, x): FILE: models/activations/activations_autofn.py class SwishAutoFn (line 9) | class SwishAutoFn(torch.autograd.Function): method forward (line 15) | def forward(ctx, x): method backward (line 21) | def backward(ctx, grad_output): function swish_auto (line 27) | def swish_auto(x, inplace=False): class SwishAuto (line 32) | class SwishAuto(nn.Module): method __init__ (line 33) | def __init__(self, inplace: bool = False): method forward (line 37) | def forward(self, x): class MishAutoFn (line 41) | class MishAutoFn(torch.autograd.Function): method forward (line 47) | def forward(ctx, x): method backward (line 53) | def backward(ctx, grad_output): function mish_auto (line 60) | def mish_auto(x, inplace=False): class MishAuto (line 65) | class MishAuto(nn.Module): method __init__ (line 66) | def __init__(self, inplace: bool = False): method forward (line 70) | def forward(self, x): FILE: models/activations/activations_jit.py function swish_jit_fwd (line 11) | def swish_jit_fwd(x): function swish_jit_bwd (line 16) | def swish_jit_bwd(x, grad_output): class SwishJitAutoFn (line 21) | class SwishJitAutoFn(torch.autograd.Function): method forward (line 27) | def forward(ctx, x): method backward (line 32) | def backward(ctx, grad_output): function swish_jit (line 37) | def swish_jit(x, inplace=False): class SwishJit (line 42) | class SwishJit(nn.Module): method __init__ (line 43) | def __init__(self, inplace: bool = False): method forward (line 47) | def forward(self, x): function mish_jit_fwd (line 52) | def mish_jit_fwd(x): function mish_jit_bwd (line 57) | def mish_jit_bwd(x, grad_output): class MishJitAutoFn (line 63) | class MishJitAutoFn(torch.autograd.Function): method forward (line 65) | def forward(ctx, x): method backward (line 70) | def backward(ctx, grad_output): function mish_jit (line 75) | def mish_jit(x, inplace=False): class MishJit (line 80) | class MishJit(nn.Module): method __init__ (line 81) | def __init__(self, inplace: bool = False): method forward (line 85) | def forward(self, x): FILE: models/activations/config.py function is_exportable (line 13) | def is_exportable(): function set_exportable (line 17) | def set_exportable(value): function is_scriptable (line 22) | def is_scriptable(): function set_scriptable (line 26) | def set_scriptable(value): FILE: models/config.py function is_exportable (line 13) | def is_exportable(): function set_exportable (line 17) | def set_exportable(value): function is_scriptable (line 22) | def is_scriptable(): function set_scriptable (line 26) | def set_scriptable(value): FILE: models/conv2d_layers.py function _ntuple (line 15) | def _ntuple(n): function _is_static_pad (line 29) | def _is_static_pad(kernel_size, stride=1, dilation=1, **_): function _get_padding (line 33) | def _get_padding(kernel_size, stride=1, dilation=1, **_): function _calc_same_pad (line 38) | def _calc_same_pad(i: int, k: int, s: int, d: int): function _same_pad_arg (line 42) | def _same_pad_arg(input_size, kernel_size, stride, dilation): function _split_channels (line 50) | def _split_channels(num_chan, num_groups): function conv2d_same (line 56) | def conv2d_same( class Conv2dSame (line 68) | class Conv2dSame(nn.Conv2d): method __init__ (line 73) | def __init__(self, in_channels, out_channels, kernel_size, stride=1, method forward (line 78) | def forward(self, x): class Conv2dSameExport (line 82) | class Conv2dSameExport(nn.Conv2d): method __init__ (line 89) | def __init__(self, in_channels, out_channels, kernel_size, stride=1, method forward (line 96) | def forward(self, x): function get_padding_value (line 110) | def get_padding_value(padding, kernel_size, **kwargs): function create_conv2d_pad (line 133) | def create_conv2d_pad(in_chs, out_chs, kernel_size, **kwargs): class MixedConv2d (line 147) | class MixedConv2d(nn.ModuleDict): method __init__ (line 153) | def __init__(self, in_channels, out_channels, kernel_size=3, method forward (line 173) | def forward(self, x): function get_condconv_initializer (line 180) | def get_condconv_initializer(initializer, num_experts, expert_shape): class CondConv2d (line 193) | class CondConv2d(nn.Module): method __init__ (line 202) | def __init__(self, in_channels, out_channels, kernel_size=3, method reset_parameters (line 232) | def reset_parameters(self): method forward (line 243) | def forward(self, x, routing_weights): function select_conv2d (line 284) | def select_conv2d(in_chs, out_chs, kernel_size, **kwargs): FILE: models/densenet.py function densenet121 (line 20) | def densenet121(pretrained=False, **kwargs): function densenet169 (line 49) | def densenet169(pretrained=False, **kwargs): function densenet201 (line 77) | def densenet201(pretrained=False, **kwargs): function densenet161 (line 105) | def densenet161(pretrained=False, **kwargs): class _DenseLayer (line 133) | class _DenseLayer(nn.Sequential): method __init__ (line 134) | def __init__(self, num_input_features, growth_rate, bn_size, drop_rate): method forward (line 146) | def forward(self, x): class _DenseBlock (line 153) | class _DenseBlock(nn.Sequential): method __init__ (line 154) | def __init__(self, num_layers, num_input_features, bn_size, growth_rat... class _Transition (line 161) | class _Transition(nn.Sequential): method __init__ (line 162) | def __init__(self, num_input_features, num_output_features): class DenseNet (line 171) | class DenseNet(nn.Module): method __init__ (line 184) | def __init__(self, growth_rate=32, block_config=(6, 12, 24, 16), method forward (line 228) | def forward(self, x): FILE: models/efficientnet_builder.py function get_bn_args_tf (line 21) | def get_bn_args_tf(): function resolve_bn_args (line 25) | def resolve_bn_args(kwargs): function resolve_se_args (line 43) | def resolve_se_args(kwargs, in_chs, act_layer=None): function resolve_act_layer (line 58) | def resolve_act_layer(kwargs, default='relu'): function make_divisible (line 65) | def make_divisible(v: int, divisor: int = 8, min_value: int = None): function round_channels (line 73) | def round_channels(channels, multiplier=1.0, divisor=8, channel_min=None): function drop_connect (line 81) | def drop_connect(inputs, training: bool = False, drop_connect_rate: floa... class SqueezeExcite (line 94) | class SqueezeExcite(nn.Module): method __init__ (line 96) | def __init__(self, in_chs, se_ratio=0.25, reduced_base_chs=None, act_l... method forward (line 105) | def forward(self, x): class ConvBnAct (line 115) | class ConvBnAct(nn.Module): method __init__ (line 116) | def __init__(self, in_chs, out_chs, kernel_size, method forward (line 125) | def forward(self, x): class DepthwiseSeparableConv (line 132) | class DepthwiseSeparableConv(nn.Module): method __init__ (line 137) | def __init__(self, in_chs, out_chs, dw_kernel_size=3, method forward (line 163) | def forward(self, x): class InvertedResidual (line 183) | class InvertedResidual(nn.Module): method __init__ (line 186) | def __init__(self, in_chs, out_chs, dw_kernel_size=3, method forward (line 220) | def forward(self, x): class CondConvResidual (line 247) | class CondConvResidual(InvertedResidual): method __init__ (line 250) | def __init__(self, in_chs, out_chs, dw_kernel_size=3, method forward (line 268) | def forward(self, x): class EdgeResidual (line 299) | class EdgeResidual(nn.Module): method __init__ (line 302) | def __init__(self, in_chs, out_chs, exp_kernel_size=3, exp_ratio=1.0, ... method forward (line 327) | def forward(self, x): class EfficientNetBuilder (line 350) | class EfficientNetBuilder: method __init__ (line 360) | def __init__(self, channel_multiplier=1.0, channel_divisor=8, channel_... method _round_channels (line 378) | def _round_channels(self, chs): method _make_block (line 381) | def _make_block(self, ba): method _make_stack (line 416) | def _make_stack(self, stack_args): method __call__ (line 428) | def __call__(self, in_chs, block_args): function _parse_ksize (line 449) | def _parse_ksize(ss): function _decode_block_str (line 456) | def _decode_block_str(block_str): function _scale_stage_depth (line 575) | def _scale_stage_depth(stack_args, repeats, depth_multiplier=1.0, depth_... function decode_arch_def (line 613) | def decode_arch_def(arch_def, depth_multiplier=1.0, depth_trunc='ceil', ... function initialize_weight_goog (line 633) | def initialize_weight_goog(m, n='', fix_group_fanout=True): function initialize_weight_default (line 665) | def initialize_weight_default(m, n=''): FILE: models/gen_efficientnet.py class GenEfficientNet (line 203) | class GenEfficientNet(nn.Module): method __init__ (line 214) | def __init__(self, block_args, num_classes=1000, in_chans=3, num_featu... method features (line 248) | def features(self, x): method as_sequential (line 258) | def as_sequential(self): method forward (line 266) | def forward(self, x): function _create_model (line 275) | def _create_model(model_kwargs, variant, pretrained=False): function _gen_mnasnet_a1 (line 285) | def _gen_mnasnet_a1(variant, channel_multiplier=1.0, pretrained=False, *... function _gen_mnasnet_b1 (line 322) | def _gen_mnasnet_b1(variant, channel_multiplier=1.0, pretrained=False, *... function _gen_mnasnet_small (line 359) | def _gen_mnasnet_small(variant, channel_multiplier=1.0, pretrained=False... function _gen_fbnetc (line 389) | def _gen_fbnetc(variant, channel_multiplier=1.0, pretrained=False, **kwa... function _gen_spnasnet (line 420) | def _gen_spnasnet(variant, channel_multiplier=1.0, pretrained=False, **k... function _gen_efficientnet (line 456) | def _gen_efficientnet(variant, channel_multiplier=1.0, depth_multiplier=... function _gen_efficientnet_edge (line 501) | def _gen_efficientnet_edge(variant, channel_multiplier=1.0, depth_multip... function _gen_efficientnet_condconv (line 525) | def _gen_efficientnet_condconv( function _gen_efficientnet_lite (line 550) | def _gen_efficientnet_lite(variant, channel_multiplier=1.0, depth_multip... function _gen_mixnet_s (line 591) | def _gen_mixnet_s(variant, channel_multiplier=1.0, pretrained=False, **k... function _gen_mixnet_m (line 625) | def _gen_mixnet_m(variant, channel_multiplier=1.0, depth_multiplier=1.0,... function mnasnet_050 (line 659) | def mnasnet_050(pretrained=False, **kwargs): function mnasnet_075 (line 665) | def mnasnet_075(pretrained=False, **kwargs): function mnasnet_100 (line 671) | def mnasnet_100(pretrained=False, **kwargs): function mnasnet_b1 (line 677) | def mnasnet_b1(pretrained=False, **kwargs): function mnasnet_140 (line 682) | def mnasnet_140(pretrained=False, **kwargs): function semnasnet_050 (line 688) | def semnasnet_050(pretrained=False, **kwargs): function semnasnet_075 (line 694) | def semnasnet_075(pretrained=False, **kwargs): function semnasnet_100 (line 700) | def semnasnet_100(pretrained=False, **kwargs): function mnasnet_a1 (line 706) | def mnasnet_a1(pretrained=False, **kwargs): function semnasnet_140 (line 711) | def semnasnet_140(pretrained=False, **kwargs): function mnasnet_small (line 717) | def mnasnet_small(pretrained=False, **kwargs): function fbnetc_100 (line 723) | def fbnetc_100(pretrained=False, **kwargs): function spnasnet_100 (line 732) | def spnasnet_100(pretrained=False, **kwargs): function efficientnet_b0 (line 738) | def efficientnet_b0(pretrained=False, **kwargs): function efficientnet_b1 (line 746) | def efficientnet_b1(pretrained=False, **kwargs): function efficientnet_b2 (line 754) | def efficientnet_b2(pretrained=False, **kwargs): function efficientnet_b3 (line 762) | def efficientnet_b3(pretrained=False, **kwargs): function efficientnet_b4 (line 770) | def efficientnet_b4(pretrained=False, **kwargs): function efficientnet_b5 (line 778) | def efficientnet_b5(pretrained=False, **kwargs): function efficientnet_b6 (line 786) | def efficientnet_b6(pretrained=False, **kwargs): function efficientnet_b7 (line 794) | def efficientnet_b7(pretrained=False, **kwargs): function efficientnet_b8 (line 802) | def efficientnet_b8(pretrained=False, **kwargs): function efficientnet_l2 (line 810) | def efficientnet_l2(pretrained=False, **kwargs): function efficientnet_es (line 818) | def efficientnet_es(pretrained=False, **kwargs): function efficientnet_em (line 825) | def efficientnet_em(pretrained=False, **kwargs): function efficientnet_el (line 832) | def efficientnet_el(pretrained=False, **kwargs): function efficientnet_cc_b0_4e (line 839) | def efficientnet_cc_b0_4e(pretrained=False, **kwargs): function efficientnet_cc_b0_8e (line 847) | def efficientnet_cc_b0_8e(pretrained=False, **kwargs): function efficientnet_cc_b1_8e (line 856) | def efficientnet_cc_b1_8e(pretrained=False, **kwargs): function efficientnet_lite0 (line 865) | def efficientnet_lite0(pretrained=False, **kwargs): function efficientnet_lite1 (line 872) | def efficientnet_lite1(pretrained=False, **kwargs): function efficientnet_lite2 (line 879) | def efficientnet_lite2(pretrained=False, **kwargs): function efficientnet_lite3 (line 886) | def efficientnet_lite3(pretrained=False, **kwargs): function efficientnet_lite4 (line 893) | def efficientnet_lite4(pretrained=False, **kwargs): function tf_efficientnet_b0 (line 900) | def tf_efficientnet_b0(pretrained=False, **kwargs): function tf_efficientnet_b1 (line 909) | def tf_efficientnet_b1(pretrained=False, **kwargs): function tf_efficientnet_b2 (line 918) | def tf_efficientnet_b2(pretrained=False, **kwargs): function tf_efficientnet_b3 (line 927) | def tf_efficientnet_b3(pretrained=False, **kwargs): function tf_efficientnet_b4 (line 936) | def tf_efficientnet_b4(pretrained=False, **kwargs): function tf_efficientnet_b5 (line 945) | def tf_efficientnet_b5(pretrained=False, **kwargs): function tf_efficientnet_b6 (line 954) | def tf_efficientnet_b6(pretrained=False, **kwargs): function tf_efficientnet_b7 (line 963) | def tf_efficientnet_b7(pretrained=False, **kwargs): function tf_efficientnet_b8 (line 972) | def tf_efficientnet_b8(pretrained=False, **kwargs): function tf_efficientnet_b0_ap (line 981) | def tf_efficientnet_b0_ap(pretrained=False, **kwargs): function tf_efficientnet_b1_ap (line 992) | def tf_efficientnet_b1_ap(pretrained=False, **kwargs): function tf_efficientnet_b2_ap (line 1003) | def tf_efficientnet_b2_ap(pretrained=False, **kwargs): function tf_efficientnet_b3_ap (line 1014) | def tf_efficientnet_b3_ap(pretrained=False, **kwargs): function tf_efficientnet_b4_ap (line 1025) | def tf_efficientnet_b4_ap(pretrained=False, **kwargs): function tf_efficientnet_b5_ap (line 1036) | def tf_efficientnet_b5_ap(pretrained=False, **kwargs): function tf_efficientnet_b6_ap (line 1047) | def tf_efficientnet_b6_ap(pretrained=False, **kwargs): function tf_efficientnet_b7_ap (line 1059) | def tf_efficientnet_b7_ap(pretrained=False, **kwargs): function tf_efficientnet_b8_ap (line 1071) | def tf_efficientnet_b8_ap(pretrained=False, **kwargs): function tf_efficientnet_b0_ns (line 1083) | def tf_efficientnet_b0_ns(pretrained=False, **kwargs): function tf_efficientnet_b1_ns (line 1094) | def tf_efficientnet_b1_ns(pretrained=False, **kwargs): function tf_efficientnet_b2_ns (line 1105) | def tf_efficientnet_b2_ns(pretrained=False, **kwargs): function tf_efficientnet_b3_ns (line 1116) | def tf_efficientnet_b3_ns(pretrained=False, **kwargs): function tf_efficientnet_b4_ns (line 1127) | def tf_efficientnet_b4_ns(pretrained=False, **kwargs): function tf_efficientnet_b5_ns (line 1138) | def tf_efficientnet_b5_ns(pretrained=False, **kwargs): function tf_efficientnet_b6_ns (line 1149) | def tf_efficientnet_b6_ns(pretrained=False, **kwargs): function tf_efficientnet_b7_ns (line 1161) | def tf_efficientnet_b7_ns(pretrained=False, **kwargs): function tf_efficientnet_l2_ns_475 (line 1173) | def tf_efficientnet_l2_ns_475(pretrained=False, **kwargs): function tf_efficientnet_l2_ns (line 1185) | def tf_efficientnet_l2_ns(pretrained=False, **kwargs): function tf_efficientnet_es (line 1197) | def tf_efficientnet_es(pretrained=False, **kwargs): function tf_efficientnet_em (line 1206) | def tf_efficientnet_em(pretrained=False, **kwargs): function tf_efficientnet_el (line 1215) | def tf_efficientnet_el(pretrained=False, **kwargs): function tf_efficientnet_cc_b0_4e (line 1224) | def tf_efficientnet_cc_b0_4e(pretrained=False, **kwargs): function tf_efficientnet_cc_b0_8e (line 1233) | def tf_efficientnet_cc_b0_8e(pretrained=False, **kwargs): function tf_efficientnet_cc_b1_8e (line 1243) | def tf_efficientnet_cc_b1_8e(pretrained=False, **kwargs): function tf_efficientnet_lite0 (line 1253) | def tf_efficientnet_lite0(pretrained=False, **kwargs): function tf_efficientnet_lite1 (line 1262) | def tf_efficientnet_lite1(pretrained=False, **kwargs): function tf_efficientnet_lite2 (line 1271) | def tf_efficientnet_lite2(pretrained=False, **kwargs): function tf_efficientnet_lite3 (line 1280) | def tf_efficientnet_lite3(pretrained=False, **kwargs): function tf_efficientnet_lite4 (line 1289) | def tf_efficientnet_lite4(pretrained=False, **kwargs): function mixnet_s (line 1298) | def mixnet_s(pretrained=False, **kwargs): function mixnet_m (line 1307) | def mixnet_m(pretrained=False, **kwargs): function mixnet_l (line 1316) | def mixnet_l(pretrained=False, **kwargs): function mixnet_xl (line 1325) | def mixnet_xl(pretrained=False, **kwargs): function mixnet_xxl (line 1335) | def mixnet_xxl(pretrained=False, **kwargs): function tf_mixnet_s (line 1345) | def tf_mixnet_s(pretrained=False, **kwargs): function tf_mixnet_m (line 1355) | def tf_mixnet_m(pretrained=False, **kwargs): function tf_mixnet_l (line 1365) | def tf_mixnet_l(pretrained=False, **kwargs): FILE: models/helpers.py function load_checkpoint (line 10) | def load_checkpoint(model, checkpoint_path): function load_pretrained (line 31) | def load_pretrained(model, url, filter_fn=None, strict=True): FILE: models/mobilenetv3.py class MobileNetV3 (line 45) | class MobileNetV3(nn.Module): method __init__ (line 54) | def __init__(self, block_args, num_classes=1000, in_chans=3, stem_size... method as_sequential (line 86) | def as_sequential(self): method features (line 94) | def features(self, x): method forward (line 104) | def forward(self, x): function _create_model (line 112) | def _create_model(model_kwargs, variant, pretrained=False): function _gen_mobilenet_v3_rw (line 122) | def _gen_mobilenet_v3_rw(variant, channel_multiplier=1.0, pretrained=Fal... function _gen_mobilenet_v3 (line 170) | def _gen_mobilenet_v3(variant, channel_multiplier=1.0, pretrained=False,... function mobilenetv3_rw (line 266) | def mobilenetv3_rw(pretrained=False, **kwargs): function mobilenetv3_large_075 (line 278) | def mobilenetv3_large_075(pretrained=False, **kwargs): function mobilenetv3_large_100 (line 285) | def mobilenetv3_large_100(pretrained=False, **kwargs): function mobilenetv3_large_125 (line 292) | def mobilenetv3_large_125(pretrained=False, **kwargs): function mobilenetv3_large_minimal_100 (line 300) | def mobilenetv3_large_minimal_100(pretrained=False, **kwargs): function mobilenetv3_small_075 (line 307) | def mobilenetv3_small_075(pretrained=False, **kwargs): function mobilenetv3_small_100 (line 313) | def mobilenetv3_small_100(pretrained=False, **kwargs): function mobilenetv3_small_minimal_100 (line 319) | def mobilenetv3_small_minimal_100(pretrained=False, **kwargs): function tf_mobilenetv3_large_075 (line 325) | def tf_mobilenetv3_large_075(pretrained=False, **kwargs): function tf_mobilenetv3_large_100 (line 333) | def tf_mobilenetv3_large_100(pretrained=False, **kwargs): function tf_mobilenetv3_large_minimal_100 (line 341) | def tf_mobilenetv3_large_minimal_100(pretrained=False, **kwargs): function tf_mobilenetv3_small_075 (line 349) | def tf_mobilenetv3_small_075(pretrained=False, **kwargs): function tf_mobilenetv3_small_100 (line 357) | def tf_mobilenetv3_small_100(pretrained=False, **kwargs): function tf_mobilenetv3_small_minimal_100 (line 365) | def tf_mobilenetv3_small_minimal_100(pretrained=False, **kwargs): FILE: models/model_factory.py function create_model (line 6) | def create_model( FILE: models/resnet.py function conv3x3 (line 17) | def conv3x3(in_planes, out_planes, stride=1, groups=1): function conv1x1 (line 23) | def conv1x1(in_planes, out_planes, stride=1): class BasicBlock (line 28) | class BasicBlock(nn.Module): method __init__ (line 31) | def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, method forward (line 47) | def forward(self, x): class Bottleneck (line 66) | class Bottleneck(nn.Module): method __init__ (line 69) | def __init__(self, inplanes, planes, stride=1, downsample=None, groups=1, method forward (line 86) | def forward(self, x): class ResNet (line 109) | class ResNet(nn.Module): method __init__ (line 111) | def __init__(self, block, layers, num_classes=1000, zero_init_residual... method _make_layer (line 149) | def _make_layer(self, block, planes, blocks, stride=1, norm_layer=None): method forward (line 169) | def forward(self, x): function resnet18 (line 185) | def resnet18(pretrained=False, **kwargs): function resnet34 (line 197) | def resnet34(pretrained=False, **kwargs): function resnet50 (line 208) | def resnet50(pretrained=False, **kwargs): function resnet101 (line 220) | def resnet101(pretrained=False, **kwargs): function resnet152 (line 231) | def resnet152(pretrained=False, **kwargs): function resnext50_32x4d (line 242) | def resnext50_32x4d(pretrained=False, **kwargs): function resnext101_32x8d (line 249) | def resnext101_32x8d(pretrained=False, **kwargs): function count_parameters (line 256) | def count_parameters(model): FILE: network.py class Memory (line 8) | class Memory: method __init__ (line 9) | def __init__(self): method clear_memory (line 17) | def clear_memory(self): class ActorCritic (line 26) | class ActorCritic(nn.Module): method __init__ (line 27) | def __init__(self, feature_dim, state_dim, hidden_state_dim=1024, poli... method forward (line 64) | def forward(self): method act (line 67) | def act(self, state_ini, memory, restart_batch=False, training=False): method evaluate (line 100) | def evaluate(self, state, action): class PPO (line 131) | class PPO: method __init__ (line 132) | def __init__(self, feature_dim, state_dim, hidden_state_dim, policy_conv, method select_action (line 149) | def select_action(self, state, memory, restart_batch=False, training=T... method update (line 152) | def update(self, memory): class Full_layer (line 186) | class Full_layer(torch.nn.Module): method __init__ (line 187) | def __init__(self, feature_num, hidden_state_dim=1024, fc_rnn=True, cl... method forward (line 207) | def forward(self, x, restart=False): FILE: pycls/core/config.py function assert_and_infer_cfg (line 357) | def assert_and_infer_cfg(cache_urls=True): function cache_cfg_urls (line 392) | def cache_cfg_urls(): function dump_cfg (line 400) | def dump_cfg(): function load_cfg (line 407) | def load_cfg(out_dir, cfg_dest="config.yaml"): FILE: pycls/core/losses.py function get_loss_fun (line 18) | def get_loss_fun(): function register_loss_fun (line 26) | def register_loss_fun(name, ctor): FILE: pycls/core/model_builder.py function build_model (line 25) | def build_model(): function register_model (line 50) | def register_model(name, ctor): FILE: pycls/core/old_config.py function assert_and_infer_cfg (line 357) | def assert_and_infer_cfg(cache_urls=True): function cache_cfg_urls (line 392) | def cache_cfg_urls(): function dump_cfg (line 400) | def dump_cfg(): function load_cfg (line 407) | def load_cfg(out_dir, cfg_dest="config.yaml"): FILE: pycls/core/optimizer.py function construct_optimizer (line 15) | def construct_optimizer(model): function get_epoch_lr (line 71) | def get_epoch_lr(cur_epoch): function set_lr (line 76) | def set_lr(optimizer, new_lr): FILE: pycls/datasets/cifar10.py class Cifar10 (line 28) | class Cifar10(torch.utils.data.Dataset): method __init__ (line 31) | def __init__(self, data_path, split): method _load_batch (line 44) | def _load_batch(self, batch_path): method _load_data (line 49) | def _load_data(self): method _prepare_im (line 69) | def _prepare_im(self, im): method __getitem__ (line 77) | def __getitem__(self, index): method __len__ (line 82) | def __len__(self): FILE: pycls/datasets/imagenet.py class ImageNet (line 35) | class ImageNet(torch.utils.data.Dataset): method __init__ (line 38) | def __init__(self, data_path, split): method _construct_imdb (line 49) | def _construct_imdb(self): method _prepare_im (line 72) | def _prepare_im(self, im): method __getitem__ (line 97) | def __getitem__(self, index): method __len__ (line 107) | def __len__(self): FILE: pycls/datasets/loader.py function _construct_loader (line 23) | def _construct_loader(dataset_name, split, batch_size, shuffle, drop_last): function construct_train_loader (line 50) | def construct_train_loader(): function construct_test_loader (line 61) | def construct_test_loader(): function shuffle (line 72) | def shuffle(loader, cur_epoch): FILE: pycls/datasets/paths.py function has_data_path (line 23) | def has_data_path(dataset_name): function get_data_path (line 28) | def get_data_path(dataset_name): function register_path (line 33) | def register_path(name, path): FILE: pycls/datasets/transforms.py function color_norm (line 16) | def color_norm(im, mean, std): function zero_pad (line 24) | def zero_pad(im, pad_size): function horizontal_flip (line 30) | def horizontal_flip(im, p, order="CHW"): function random_crop (line 41) | def random_crop(im, size, pad_size=0): function scale (line 53) | def scale(size, im): function center_crop (line 67) | def center_crop(size, im): function random_sized_crop (line 77) | def random_sized_crop(im, size, area_frac=0.08, max_iter=10): function lighting (line 98) | def lighting(im, alpha_std, eig_val, eig_vec): FILE: pycls/models/anynet.py function get_stem_fun (line 19) | def get_stem_fun(stem_type): function get_block_fun (line 32) | def get_block_fun(block_type): class AnyHead (line 45) | class AnyHead(nn.Module): method __init__ (line 48) | def __init__(self, w_in, nc): method forward (line 53) | def forward(self, x): class VanillaBlock (line 61) | class VanillaBlock(nn.Module): method __init__ (line 64) | def __init__(self, w_in, w_out, stride, bm=None, gw=None, se_r=None): method _construct (line 71) | def _construct(self, w_in, w_out, stride): method forward (line 83) | def forward(self, x): class BasicTransform (line 89) | class BasicTransform(nn.Module): method __init__ (line 92) | def __init__(self, w_in, w_out, stride): method _construct (line 96) | def _construct(self, w_in, w_out, stride): method forward (line 108) | def forward(self, x): class ResBasicBlock (line 114) | class ResBasicBlock(nn.Module): method __init__ (line 117) | def __init__(self, w_in, w_out, stride, bm=None, gw=None, se_r=None): method _add_skip_proj (line 124) | def _add_skip_proj(self, w_in, w_out, stride): method _construct (line 130) | def _construct(self, w_in, w_out, stride): method forward (line 138) | def forward(self, x): class SE (line 147) | class SE(nn.Module): method __init__ (line 150) | def __init__(self, w_in, w_se): method _construct (line 154) | def _construct(self, w_in, w_se): method forward (line 165) | def forward(self, x): class BottleneckTransform (line 169) | class BottleneckTransform(nn.Module): method __init__ (line 172) | def __init__(self, w_in, w_out, stride, bm, gw, se_r): method _construct (line 176) | def _construct(self, w_in, w_out, stride, bm, gw, se_r): method forward (line 200) | def forward(self, x): class ResBottleneckBlock (line 206) | class ResBottleneckBlock(nn.Module): method __init__ (line 209) | def __init__(self, w_in, w_out, stride, bm=1.0, gw=1, se_r=None): method _add_skip_proj (line 213) | def _add_skip_proj(self, w_in, w_out, stride): method _construct (line 219) | def _construct(self, w_in, w_out, stride, bm, gw, se_r): method forward (line 227) | def forward(self, x): class ResStemCifar (line 236) | class ResStemCifar(nn.Module): method __init__ (line 239) | def __init__(self, w_in, w_out): method _construct (line 243) | def _construct(self, w_in, w_out): method forward (line 251) | def forward(self, x): class ResStemIN (line 257) | class ResStemIN(nn.Module): method __init__ (line 260) | def __init__(self, w_in, w_out): method _construct (line 264) | def _construct(self, w_in, w_out): method forward (line 273) | def forward(self, x): class SimpleStemIN (line 279) | class SimpleStemIN(nn.Module): method __init__ (line 282) | def __init__(self, in_w, out_w): method _construct (line 286) | def _construct(self, in_w, out_w): method forward (line 294) | def forward(self, x): class AnyStage (line 300) | class AnyStage(nn.Module): method __init__ (line 303) | def __init__(self, w_in, w_out, stride, d, block_fun, bm, gw, se_r): method _construct (line 307) | def _construct(self, w_in, w_out, stride, d, block_fun, bm, gw, se_r): method forward (line 318) | def forward(self, x): class AnyNet (line 324) | class AnyNet(nn.Module): method __init__ (line 327) | def __init__(self, **kwargs): method _construct (line 357) | def _construct(self, stem_type, stem_w, block_type, ds, ws, ss, bms, g... method forward (line 380) | def forward(self, x): FILE: pycls/models/effnet.py class EffHead (line 20) | class EffHead(nn.Module): method __init__ (line 23) | def __init__(self, w_in, w_out, nc): method _construct (line 27) | def _construct(self, w_in, w_out, nc): method forward (line 42) | def forward(self, x): class Swish (line 51) | class Swish(nn.Module): method __init__ (line 54) | def __init__(self): method forward (line 57) | def forward(self, x): class SE (line 61) | class SE(nn.Module): method __init__ (line 64) | def __init__(self, w_in, w_se): method _construct (line 68) | def _construct(self, w_in, w_se): method forward (line 79) | def forward(self, x): class MBConv (line 83) | class MBConv(nn.Module): method __init__ (line 86) | def __init__(self, w_in, exp_r, kernel, stride, se_r, w_out): method _construct (line 90) | def _construct(self, w_in, exp_r, kernel, stride, se_r, w_out): method forward (line 126) | def forward(self, x): class EffStage (line 146) | class EffStage(nn.Module): method __init__ (line 149) | def __init__(self, w_in, exp_r, kernel, stride, se_r, w_out, d): method _construct (line 153) | def _construct(self, w_in, exp_r, kernel, stride, se_r, w_out, d): method forward (line 165) | def forward(self, x): class StemIN (line 171) | class StemIN(nn.Module): method __init__ (line 174) | def __init__(self, w_in, w_out): method _construct (line 178) | def _construct(self, w_in, w_out): method forward (line 186) | def forward(self, x): class EffNet (line 192) | class EffNet(nn.Module): method __init__ (line 195) | def __init__(self): method _construct (line 216) | def _construct(self, stem_w, ds, ws, exp_rs, se_r, ss, ks, head_w, nc): method forward (line 232) | def forward(self, x): FILE: pycls/models/regnet.py function quantize_float (line 19) | def quantize_float(f, q): function adjust_ws_gs_comp (line 24) | def adjust_ws_gs_comp(ws, bms, gs): function get_stages_from_blocks (line 33) | def get_stages_from_blocks(ws, rs): function generate_regnet (line 42) | def generate_regnet(w_a, w_0, w_m, d, q=8): class RegNet (line 54) | class RegNet(AnyNet): method __init__ (line 57) | def __init__(self): FILE: pycls/models/resnet.py function get_trans_fun (line 23) | def get_trans_fun(name): class ResHead (line 35) | class ResHead(nn.Module): method __init__ (line 38) | def __init__(self, w_in, nc): method forward (line 43) | def forward(self, x): class BasicTransform (line 50) | class BasicTransform(nn.Module): method __init__ (line 53) | def __init__(self, w_in, w_out, stride, w_b=None, num_gs=1): method _construct (line 60) | def _construct(self, w_in, w_out, stride): method forward (line 72) | def forward(self, x): class BottleneckTransform (line 78) | class BottleneckTransform(nn.Module): method __init__ (line 81) | def __init__(self, w_in, w_out, stride, w_b, num_gs): method _construct (line 85) | def _construct(self, w_in, w_out, stride, w_b, num_gs): method forward (line 105) | def forward(self, x): class ResBlock (line 111) | class ResBlock(nn.Module): method __init__ (line 114) | def __init__(self, w_in, w_out, stride, trans_fun, w_b=None, num_gs=1): method _add_skip_proj (line 118) | def _add_skip_proj(self, w_in, w_out, stride): method _construct (line 124) | def _construct(self, w_in, w_out, stride, trans_fun, w_b, num_gs): method forward (line 132) | def forward(self, x): class ResStage (line 141) | class ResStage(nn.Module): method __init__ (line 144) | def __init__(self, w_in, w_out, stride, d, w_b=None, num_gs=1): method _construct (line 148) | def _construct(self, w_in, w_out, stride, d, w_b, num_gs): method forward (line 160) | def forward(self, x): class ResStem (line 166) | class ResStem(nn.Module): method __init__ (line 169) | def __init__(self, w_in, w_out): method _construct_cifar (line 179) | def _construct_cifar(self, w_in, w_out): method _construct_imagenet (line 187) | def _construct_imagenet(self, w_in, w_out): method forward (line 196) | def forward(self, x): class ResNet (line 202) | class ResNet(nn.Module): method __init__ (line 205) | def __init__(self): method _construct_cifar (line 221) | def _construct_cifar(self): method _construct_imagenet (line 239) | def _construct_imagenet(self): method forward (line 272) | def forward(self, x): FILE: pycls/utils/benchmark.py function compute_fw_test_time (line 17) | def compute_fw_test_time(model, inputs): function compute_fw_bw_time (line 38) | def compute_fw_bw_time(model, loss_fun, inputs, labels): function compute_precise_time (line 69) | def compute_precise_time(model, loss_fun): FILE: pycls/utils/checkpoint.py function get_checkpoint_dir (line 23) | def get_checkpoint_dir(): function get_checkpoint (line 28) | def get_checkpoint(epoch): function get_last_checkpoint (line 34) | def get_last_checkpoint(): function has_checkpoint (line 43) | def has_checkpoint(): function is_checkpoint_epoch (line 51) | def is_checkpoint_epoch(cur_epoch): function save_checkpoint (line 56) | def save_checkpoint(model, optimizer, epoch): function load_checkpoint (line 78) | def load_checkpoint(checkpoint_file, model, optimizer=None): FILE: pycls/utils/distributed.py function is_master_proc (line 14) | def is_master_proc(): function init_process_group (line 25) | def init_process_group(proc_rank, world_size): function destroy_process_group (line 38) | def destroy_process_group(): function scaled_all_reduce (line 43) | def scaled_all_reduce(tensors): FILE: pycls/utils/error_handler.py class ChildException (line 15) | class ChildException(Exception): method __init__ (line 18) | def __init__(self, child_trace): class ErrorHandler (line 22) | class ErrorHandler(object): method __init__ (line 29) | def __init__(self, error_queue): method add_child (line 40) | def add_child(self, pid): method listen (line 44) | def listen(self): method signal_handler (line 53) | def signal_handler(self, _sig_num, _stack_frame): FILE: pycls/utils/io.py function cache_url (line 22) | def cache_url(url_or_file, cache_dir): function _progress_bar (line 50) | def _progress_bar(count, total): function download_url (line 69) | def download_url(url, dst_file_path, chunk_size=8192, progress_hook=_pro... FILE: pycls/utils/logging.py function _suppress_print (line 31) | def _suppress_print(): function setup_logging (line 40) | def setup_logging(): function get_logger (line 60) | def get_logger(name): function log_json_stats (line 65) | def log_json_stats(stats): function load_json_stats (line 77) | def load_json_stats(log_file): function parse_json_stats (line 86) | def parse_json_stats(log, row_type, key): function get_log_files (line 94) | def get_log_files(log_dir, name_filter=""): FILE: pycls/utils/lr_policy.py function lr_fun_steps (line 14) | def lr_fun_steps(cur_epoch): function lr_fun_exp (line 20) | def lr_fun_exp(cur_epoch): function lr_fun_cos (line 25) | def lr_fun_cos(cur_epoch): function get_lr_fun (line 31) | def get_lr_fun(): function get_epoch_lr (line 39) | def get_epoch_lr(cur_epoch): FILE: pycls/utils/meters.py function eta_str (line 20) | def eta_str(eta_td): class ScalarMeter (line 28) | class ScalarMeter(object): method __init__ (line 31) | def __init__(self, window_size): method reset (line 36) | def reset(self): method add_value (line 41) | def add_value(self, value): method get_win_median (line 46) | def get_win_median(self): method get_win_avg (line 49) | def get_win_avg(self): method get_global_avg (line 52) | def get_global_avg(self): class TrainMeter (line 56) | class TrainMeter(object): method __init__ (line 59) | def __init__(self, epoch_iters): method reset (line 74) | def reset(self, timer=False): method iter_tic (line 86) | def iter_tic(self): method iter_toc (line 89) | def iter_toc(self): method update_stats (line 92) | def update_stats(self, top1_err, top5_err, loss, lr, mb_size): method get_iter_stats (line 104) | def get_iter_stats(self, cur_epoch, cur_iter): method log_iter_stats (line 125) | def log_iter_stats(self, cur_epoch, cur_iter): method get_epoch_stats (line 131) | def get_epoch_stats(self, cur_epoch): method log_epoch_stats (line 153) | def log_epoch_stats(self, cur_epoch): class TestMeter (line 158) | class TestMeter(object): method __init__ (line 161) | def __init__(self, max_iter): method reset (line 175) | def reset(self, min_errs=False): method iter_tic (line 186) | def iter_tic(self): method iter_toc (line 189) | def iter_toc(self): method update_stats (line 192) | def update_stats(self, top1_err, top5_err, mb_size): method get_iter_stats (line 199) | def get_iter_stats(self, cur_epoch, cur_iter): method log_iter_stats (line 213) | def log_iter_stats(self, cur_epoch, cur_iter): method get_epoch_stats (line 219) | def get_epoch_stats(self, cur_epoch): method log_epoch_stats (line 237) | def log_epoch_stats(self, cur_epoch): FILE: pycls/utils/metrics.py function topks_correct (line 20) | def topks_correct(preds, labels, ks): function topk_errors (line 40) | def topk_errors(preds, labels, ks): function topk_accuracies (line 46) | def topk_accuracies(preds, labels, ks): function params_count (line 52) | def params_count(model): function flops_count (line 57) | def flops_count(model): function acts_count (line 79) | def acts_count(model): function gpu_mem_usage (line 101) | def gpu_mem_usage(): FILE: pycls/utils/multiprocessing.py function run (line 17) | def run(proc_rank, world_size, error_queue, fun, fun_args, fun_kwargs): function multi_proc_run (line 35) | def multi_proc_run(num_proc, fun, fun_args=(), fun_kwargs=None): FILE: pycls/utils/net.py function init_weights (line 18) | def init_weights(m): function compute_precise_bn_stats (line 36) | def compute_precise_bn_stats(model, loader): function reset_bn_stats (line 65) | def reset_bn_stats(model): function drop_connect (line 72) | def drop_connect(x, drop_ratio): function get_flat_weights (line 82) | def get_flat_weights(model): function set_flat_weights (line 87) | def set_flat_weights(model, flat_weights): FILE: pycls/utils/plotting.py function get_plot_colors (line 17) | def get_plot_colors(max_colors, color_format="pyplot"): function prepare_plot_data (line 27) | def prepare_plot_data(log_files, names, key="top1_err"): function plot_error_curves_plotly (line 42) | def plot_error_curves_plotly(log_files, names, filename, key="top1_err"): function plot_error_curves_pyplot (line 115) | def plot_error_curves_pyplot(log_files, names, filename=None, key="top1_... FILE: pycls/utils/timer.py class Timer (line 13) | class Timer(object): method __init__ (line 16) | def __init__(self): method tic (line 19) | def tic(self): method toc (line 24) | def toc(self): method reset (line 30) | def reset(self): FILE: simplejson/__init__.py function _import_OrderedDict (line 136) | def _import_OrderedDict(): function _import_c_make_encoder (line 145) | def _import_c_make_encoder(): function dump (line 172) | def dump(obj, fp, skipkeys=False, ensure_ascii=True, check_circular=True, function dumps (line 294) | def dumps(obj, skipkeys=False, ensure_ascii=True, check_circular=True, function load (line 419) | def load(fp, encoding=None, cls=None, object_hook=None, parse_float=None, function loads (line 474) | def loads(s, encoding=None, cls=None, object_hook=None, parse_float=None, function _toggle_speedups (line 545) | def _toggle_speedups(enabled): function simple_first (line 580) | def simple_first(kv): FILE: simplejson/_speedups.c function json_PyOS_string_to_double (line 33) | static double type JSON_Accu (line 86) | typedef struct { type PyScannerObject (line 112) | typedef struct _PyScannerObject { type PyEncoderObject (line 136) | typedef struct _PyEncoderObject { function is_raw_json (line 261) | static int function JSON_Accu_Init (line 267) | static int function flush_accumulator (line 278) | static int function JSON_Accu_Accumulate (line 308) | static int function PyObject (line 333) | static PyObject * function JSON_Accu_Destroy (line 352) | static void function IS_DIGIT (line 359) | static int function PyObject (line 365) | static PyObject * function _is_namedtuple (line 385) | static int function _has_for_json_hook (line 399) | static int function _convertPyInt_AsSsize_t (line 413) | static int function PyObject (line 423) | static PyObject * function Py_ssize_t (line 430) | static Py_ssize_t function Py_ssize_t (line 474) | static Py_ssize_t function PyObject (line 499) | static PyObject * function PyObject (line 542) | static PyObject * function PyObject (line 556) | static PyObject * function PyObject (line 605) | static PyObject * function PyObject (line 666) | static PyObject * function raise_errmsg (line 765) | static void function PyObject (line 775) | static PyObject * function PyObject (line 785) | static PyObject * function PyObject (line 799) | static PyObject * function PyObject (line 843) | static PyObject * function PyObject (line 1050) | static PyObject * function PyObject (line 1247) | static PyObject * function PyObject (line 1289) | static PyObject * function scanner_dealloc (line 1310) | static void function scanner_traverse (line 1319) | static int function scanner_clear (line 1336) | static int function PyObject (line 1354) | static PyObject * function PyObject (line 1515) | static PyObject * function PyObject (line 1679) | static PyObject * function PyObject (line 1759) | static PyObject * function PyObject (line 1839) | static PyObject * function PyObject (line 1861) | static PyObject * function PyObject (line 1966) | static PyObject * function PyObject (line 2078) | static PyObject * function PyObject (line 2185) | static PyObject * function PyObject (line 2317) | static PyObject * function PyObject (line 2352) | static PyObject * function PyObject (line 2377) | static PyObject * function PyObject (line 2482) | static PyObject * function PyObject (line 2658) | static PyObject * function PyObject (line 2681) | static PyObject * function PyObject (line 2715) | static PyObject * function PyObject (line 2759) | static PyObject * function _steal_accumulate (line 2784) | static int function encoder_listencode_obj (line 2793) | static int function encoder_listencode_dict (line 2941) | static int function encoder_listencode_list (line 3080) | static int function encoder_dealloc (line 3174) | static void function encoder_traverse (line 3183) | static int function encoder_clear (line 3206) | static int type PyModuleDef (line 3292) | struct PyModuleDef function PyObject (line 3305) | PyObject * function init_constants (line 3317) | static int function PyObject (line 3343) | static PyObject * function PyMODINIT_FUNC (line 3373) | PyMODINIT_FUNC function init_speedups (line 3379) | void FILE: simplejson/compat.py function b (line 6) | def b(s): function b (line 25) | def b(s): FILE: simplejson/decoder.py function _import_c_scanstring (line 10) | def _import_c_scanstring(): function _floatconstants (line 24) | def _floatconstants(): function py_scanstring (line 49) | def py_scanstring(s, end, encoding=None, strict=True, function JSONObject (line 142) | def JSONObject(state, encoding, strict, scan_once, object_hook, function JSONArray (line 236) | def JSONArray(state, scan_once, _w=WHITESPACE.match, _ws=WHITESPACE_STR): class JSONDecoder (line 272) | class JSONDecoder(object): method __init__ (line 302) | def __init__(self, encoding=None, object_hook=None, parse_float=None, method decode (line 363) | def decode(self, s, _w=WHITESPACE.match, _PY3=PY3): method raw_decode (line 376) | def raw_decode(self, s, idx=0, _w=WHITESPACE.match, _PY3=PY3): FILE: simplejson/encoder.py function _import_speedups (line 9) | def _import_speedups(): function encode_basestring (line 38) | def encode_basestring(s, _PY3=PY3, _q=u'"'): function py_encode_basestring_ascii (line 65) | def py_encode_basestring_ascii(s, _PY3=PY3): class JSONEncoder (line 109) | class JSONEncoder(object): method __init__ (line 141) | def __init__(self, skipkeys=False, ensure_ascii=True, method default (line 254) | def default(self, o): method encode (line 275) | def encode(self, o): method iterencode (line 304) | def iterencode(self, o, _one_shot=False): class JSONEncoderForHTML (line 383) | class JSONEncoderForHTML(JSONEncoder): method encode (line 397) | def encode(self, o): method iterencode (line 406) | def iterencode(self, o, _one_shot=False): function _make_iterencode (line 420) | def _make_iterencode(markers, _default, _encoder, _indent, _floatstr, FILE: simplejson/errors.py function linecol (line 6) | def linecol(doc, pos): function errmsg (line 15) | def errmsg(msg, doc, pos, end=None): class JSONDecodeError (line 26) | class JSONDecodeError(ValueError): method __init__ (line 40) | def __init__(self, msg, doc, pos, end=None): method __reduce__ (line 52) | def __reduce__(self): FILE: simplejson/ordered_dict.py class OrderedDict (line 8) | class OrderedDict(dict, DictMixin): method __init__ (line 10) | def __init__(self, *args, **kwds): method clear (line 19) | def clear(self): method __setitem__ (line 25) | def __setitem__(self, key, value): method __delitem__ (line 32) | def __delitem__(self, key): method __iter__ (line 38) | def __iter__(self): method __reversed__ (line 45) | def __reversed__(self): method popitem (line 52) | def popitem(self, last=True): method __reduce__ (line 59) | def __reduce__(self): method keys (line 69) | def keys(self): method __repr__ (line 81) | def __repr__(self): method copy (line 86) | def copy(self): method fromkeys (line 90) | def fromkeys(cls, iterable, value=None): method __eq__ (line 96) | def __eq__(self, other): method __ne__ (line 102) | def __ne__(self, other): FILE: simplejson/raw_json.py class RawJSON (line 4) | class RawJSON(object): method __init__ (line 8) | def __init__(self, encoded_json): FILE: simplejson/scanner.py function _import_c_make_scanner (line 5) | def _import_c_make_scanner(): function py_make_scanner (line 20) | def py_make_scanner(context): FILE: simplejson/tests/__init__.py class NoExtensionTestSuite (line 7) | class NoExtensionTestSuite(unittest.TestSuite): method run (line 8) | def run(self, result): class TestMissingSpeedups (line 16) | class TestMissingSpeedups(unittest.TestCase): method runTest (line 17) | def runTest(self): function additional_tests (line 24) | def additional_tests(suite=None): function all_tests_suite (line 43) | def all_tests_suite(): function main (line 64) | def main(): FILE: simplejson/tests/test_bigint_as_string.py class TestBigintAsString (line 6) | class TestBigintAsString(TestCase): method test_ints (line 23) | def test_ints(self): method test_lists (line 33) | def test_lists(self): method test_dicts (line 45) | def test_dicts(self): method test_dict_keys (line 57) | def test_dict_keys(self): FILE: simplejson/tests/test_bitsize_int_as_string.py class TestBitSizeIntAsString (line 6) | class TestBitSizeIntAsString(TestCase): method test_invalid_counts (line 20) | def test_invalid_counts(self): method test_ints_outside_range_fails (line 26) | def test_ints_outside_range_fails(self): method test_ints (line 32) | def test_ints(self): method test_lists (line 42) | def test_lists(self): method test_dicts (line 53) | def test_dicts(self): method test_dict_keys (line 64) | def test_dict_keys(self): FILE: simplejson/tests/test_check_circular.py function default_iterable (line 4) | def default_iterable(obj): class TestCheckCircular (line 7) | class TestCheckCircular(TestCase): method test_circular_dict (line 8) | def test_circular_dict(self): method test_circular_list (line 13) | def test_circular_list(self): method test_circular_composite (line 18) | def test_circular_composite(self): method test_circular_default (line 24) | def test_circular_default(self): method test_circular_off_default (line 28) | def test_circular_off_default(self): FILE: simplejson/tests/test_decimal.py class TestDecimal (line 8) | class TestDecimal(TestCase): method dumps (line 10) | def dumps(self, obj, **kw): method loads (line 17) | def loads(self, s, **kw): method test_decimal_encode (line 23) | def test_decimal_encode(self): method test_decimal_decode (line 27) | def test_decimal_decode(self): method test_stringify_key (line 31) | def test_stringify_key(self): method test_decimal_roundtrip (line 39) | def test_decimal_roundtrip(self): method test_decimal_defaults (line 49) | def test_decimal_defaults(self): method test_decimal_reload (line 64) | def test_decimal_reload(self): FILE: simplejson/tests/test_decode.py class MisbehavingBytesSubtype (line 9) | class MisbehavingBytesSubtype(binary_type): method decode (line 10) | def decode(self, encoding=None): method __str__ (line 12) | def __str__(self): method __bytes__ (line 14) | def __bytes__(self): class TestDecode (line 17) | class TestDecode(TestCase): method assertIs (line 19) | def assertIs(self, a, b): method test_decimal (line 22) | def test_decimal(self): method test_float (line 27) | def test_float(self): method test_decoder_optimizations (line 32) | def test_decoder_optimizations(self): method test_empty_objects (line 39) | def test_empty_objects(self): method test_object_pairs_hook (line 47) | def test_object_pairs_hook(self): method check_keys_reuse (line 64) | def check_keys_reuse(self, source, loads): method test_keys_reuse_str (line 70) | def test_keys_reuse_str(self): method test_keys_reuse_unicode (line 74) | def test_keys_reuse_unicode(self): method test_empty_strings (line 78) | def test_empty_strings(self): method test_raw_decode (line 84) | def test_raw_decode(self): method test_bytes_decode (line 98) | def test_bytes_decode(self): method test_bounds_checking (line 110) | def test_bounds_checking(self): FILE: simplejson/tests/test_default.py class TestDefault (line 5) | class TestDefault(TestCase): method test_default (line 6) | def test_default(self): FILE: simplejson/tests/test_dump.py class MisbehavingTextSubtype (line 5) | class MisbehavingTextSubtype(text_type): method __str__ (line 6) | def __str__(self): class MisbehavingBytesSubtype (line 9) | class MisbehavingBytesSubtype(binary_type): method decode (line 10) | def decode(self, encoding=None): method __str__ (line 12) | def __str__(self): method __bytes__ (line 14) | def __bytes__(self): function as_text_type (line 17) | def as_text_type(s): function decode_iso_8859_15 (line 22) | def decode_iso_8859_15(b): class TestDump (line 25) | class TestDump(TestCase): method test_dump (line 26) | def test_dump(self): method test_constants (line 31) | def test_constants(self): method test_stringify_key (line 37) | def test_stringify_key(self): method test_dumps (line 68) | def test_dumps(self): method test_encode_truefalse (line 71) | def test_encode_truefalse(self): method test_ordered_dict (line 85) | def test_ordered_dict(self): method test_indent_unknown_type_acceptance (line 93) | def test_indent_unknown_type_acceptance(self): method test_accumulator (line 133) | def test_accumulator(self): method test_sort_keys (line 138) | def test_sort_keys(self): method test_misbehaving_text_subtype (line 147) | def test_misbehaving_text_subtype(self): method test_misbehaving_bytes_subtype (line 163) | def test_misbehaving_bytes_subtype(self): method test_bytes_toplevel (line 178) | def test_bytes_toplevel(self): method test_bytes_nested (line 201) | def test_bytes_nested(self): method test_bytes_key (line 224) | def test_bytes_key(self): FILE: simplejson/tests/test_encode_basestring_ascii.py class TestEncodeBaseStringAscii (line 25) | class TestEncodeBaseStringAscii(TestCase): method test_py_encode_basestring_ascii (line 26) | def test_py_encode_basestring_ascii(self): method test_c_encode_basestring_ascii (line 29) | def test_c_encode_basestring_ascii(self): method _test_encode_basestring_ascii (line 34) | def _test_encode_basestring_ascii(self, encode_basestring_ascii): method test_sorted_dict (line 44) | def test_sorted_dict(self): FILE: simplejson/tests/test_encode_for_html.py class TestEncodeForHTML (line 5) | class TestEncodeForHTML(unittest.TestCase): method setUp (line 7) | def setUp(self): method test_basic_encode (line 12) | def test_basic_encode(self): method test_non_ascii_basic_encode (line 18) | def test_non_ascii_basic_encode(self): method test_basic_roundtrip (line 24) | def test_basic_roundtrip(self): method test_prevent_script_breakout (line 30) | def test_prevent_script_breakout(self): FILE: simplejson/tests/test_errors.py class TestErrors (line 7) | class TestErrors(TestCase): method test_string_keys_error (line 8) | def test_string_keys_error(self): method test_not_serializable (line 19) | def test_not_serializable(self): method test_decode_error (line 29) | def test_decode_error(self): method test_scan_error (line 42) | def test_scan_error(self): method test_error_is_pickable (line 54) | def test_error_is_pickable(self): FILE: simplejson/tests/test_fail.py class TestFail (line 108) | class TestFail(TestCase): method test_failures (line 109) | def test_failures(self): method test_array_decoder_issue46 (line 122) | def test_array_decoder_issue46(self): method test_truncated_input (line 138) | def test_truncated_input(self): FILE: simplejson/tests/test_float.py class TestFloat (line 7) | class TestFloat(TestCase): method test_degenerates_allow (line 8) | def test_degenerates_allow(self): method test_degenerates_ignore (line 15) | def test_degenerates_ignore(self): method test_degenerates_deny (line 19) | def test_degenerates_deny(self): method test_floats (line 23) | def test_floats(self): method test_ints (line 30) | def test_ints(self): FILE: simplejson/tests/test_for_json.py class ForJson (line 5) | class ForJson(object): method for_json (line 6) | def for_json(self): class NestedForJson (line 10) | class NestedForJson(object): method for_json (line 11) | def for_json(self): class ForJsonList (line 15) | class ForJsonList(object): method for_json (line 16) | def for_json(self): class DictForJson (line 20) | class DictForJson(dict): method for_json (line 21) | def for_json(self): class ListForJson (line 25) | class ListForJson(list): method for_json (line 26) | def for_json(self): class TestForJson (line 30) | class TestForJson(unittest.TestCase): method assertRoundTrip (line 31) | def assertRoundTrip(self, obj, other, for_json=True): method test_for_json_encodes_stand_alone_object (line 41) | def test_for_json_encodes_stand_alone_object(self): method test_for_json_encodes_object_nested_in_dict (line 46) | def test_for_json_encodes_object_nested_in_dict(self): method test_for_json_encodes_object_nested_in_list_within_dict (line 51) | def test_for_json_encodes_object_nested_in_list_within_dict(self): method test_for_json_encodes_object_nested_within_object (line 56) | def test_for_json_encodes_object_nested_within_object(self): method test_for_json_encodes_list (line 61) | def test_for_json_encodes_list(self): method test_for_json_encodes_list_within_object (line 66) | def test_for_json_encodes_list_within_object(self): method test_for_json_encodes_dict_subclass (line 71) | def test_for_json_encodes_dict_subclass(self): method test_for_json_encodes_list_subclass (line 76) | def test_for_json_encodes_list_subclass(self): method test_for_json_ignored_if_not_true_with_dict_subclass (line 81) | def test_for_json_ignored_if_not_true_with_dict_subclass(self): method test_for_json_ignored_if_not_true_with_list_subclass (line 88) | def test_for_json_ignored_if_not_true_with_list_subclass(self): method test_raises_typeerror_if_for_json_not_true_with_object (line 95) | def test_raises_typeerror_if_for_json_not_true_with_object(self): FILE: simplejson/tests/test_indent.py class TestIndent (line 7) | class TestIndent(TestCase): method test_indent (line 8) | def test_indent(self): method test_indent0 (line 56) | def test_indent0(self): method test_separators (line 71) | def test_separators(self): FILE: simplejson/tests/test_item_sort_key.py class TestItemSortKey (line 6) | class TestItemSortKey(TestCase): method test_simple_first (line 7) | def test_simple_first(self): method test_case (line 13) | def test_case(self): method test_item_sort_key_value (line 22) | def test_item_sort_key_value(self): FILE: simplejson/tests/test_iterable.py function iter_dumps (line 6) | def iter_dumps(obj, **kw): function sio_dump (line 9) | def sio_dump(obj, **kw): class TestIterable (line 14) | class TestIterable(unittest.TestCase): method test_iterable (line 15) | def test_iterable(self): FILE: simplejson/tests/test_namedtuple.py class Value (line 9) | class Value(tuple): method __new__ (line 10) | def __new__(cls, *args): method _asdict (line 13) | def _asdict(self): class Point (line 15) | class Point(tuple): method __new__ (line 16) | def __new__(cls, *args): method _asdict (line 19) | def _asdict(self): class DuckValue (line 25) | class DuckValue(object): method __init__ (line 26) | def __init__(self, *args): method _asdict (line 29) | def _asdict(self): class DuckPoint (line 32) | class DuckPoint(object): method __init__ (line 33) | def __init__(self, *args): method _asdict (line 36) | def _asdict(self): class DeadDuck (line 39) | class DeadDuck(object): class DeadDict (line 42) | class DeadDict(dict): class TestNamedTuple (line 51) | class TestNamedTuple(unittest.TestCase): method test_namedtuple_dumps (line 52) | def test_namedtuple_dumps(self): method test_namedtuple_dumps_false (line 65) | def test_namedtuple_dumps_false(self): method test_namedtuple_dump (line 74) | def test_namedtuple_dump(self): method test_namedtuple_dump_false (line 95) | def test_namedtuple_dump_false(self): method test_asdict_not_callable_dump (line 106) | def test_asdict_not_callable_dump(self): method test_asdict_not_callable_dumps (line 116) | def test_asdict_not_callable_dumps(self): FILE: simplejson/tests/test_pass1.py class TestPass1 (line 66) | class TestPass1(TestCase): method test_parse (line 67) | def test_parse(self): FILE: simplejson/tests/test_pass2.py class TestPass2 (line 9) | class TestPass2(TestCase): method test_parse (line 10) | def test_parse(self): FILE: simplejson/tests/test_pass3.py class TestPass3 (line 15) | class TestPass3(TestCase): method test_parse (line 16) | def test_parse(self): FILE: simplejson/tests/test_raw_json.py class TestRawJson (line 24) | class TestRawJson(unittest.TestCase): method test_normal_str (line 26) | def test_normal_str(self): method test_raw_json_str (line 29) | def test_raw_json_str(self): method test_list (line 33) | def test_list(self): method test_direct (line 41) | def test_direct(self): FILE: simplejson/tests/test_recursion.py class JSONTestObject (line 5) | class JSONTestObject: class RecursiveJSONEncoder (line 9) | class RecursiveJSONEncoder(json.JSONEncoder): method default (line 11) | def default(self, o): class TestRecursion (line 20) | class TestRecursion(TestCase): method test_listrecursion (line 21) | def test_listrecursion(self): method test_dictrecursion (line 44) | def test_dictrecursion(self): method test_defaultrecursion (line 58) | def test_defaultrecursion(self): FILE: simplejson/tests/test_scanstring.py class TestScanString (line 8) | class TestScanString(TestCase): method test_py_scanstring (line 17) | def test_py_scanstring(self): method test_c_scanstring (line 20) | def test_c_scanstring(self): method _test_scanstring (line 27) | def _test_scanstring(self, scanstring): method test_issue3623 (line 135) | def test_issue3623(self): method test_overflow (line 141) | def test_overflow(self): method test_surrogates (line 148) | def test_surrogates(self): FILE: simplejson/tests/test_separators.py class TestSeparators (line 7) | class TestSeparators(TestCase): method test_separators (line 8) | def test_separators(self): FILE: simplejson/tests/test_speedups.py function has_speedups (line 12) | def has_speedups(): function skip_if_speedups_missing (line 16) | def skip_if_speedups_missing(func): class BadBool (line 29) | class BadBool: method __bool__ (line 30) | def __bool__(self): class TestDecode (line 35) | class TestDecode(TestCase): method test_make_scanner (line 37) | def test_make_scanner(self): method test_bad_bool_args (line 41) | def test_bad_bool_args(self): class TestEncode (line 50) | class TestEncode(TestCase): method test_make_encoder (line 52) | def test_make_encoder(self): method test_bad_str_encoder (line 63) | def test_bad_str_encoder(self): method test_bad_bool_args (line 87) | def test_bad_bool_args(self): method test_int_as_string_bitcount_overflow (line 104) | def test_int_as_string_bitcount_overflow(self): method test_bad_encoding (line 112) | def test_bad_encoding(self): FILE: simplejson/tests/test_str_subclass.py class WonkyTextSubclass (line 7) | class WonkyTextSubclass(text_type): method __getslice__ (line 8) | def __getslice__(self, start, end): class TestStrSubclass (line 11) | class TestStrSubclass(TestCase): method test_dump_load (line 12) | def test_dump_load(self): FILE: simplejson/tests/test_subclass.py class AlternateInt (line 6) | class AlternateInt(int): method __repr__ (line 7) | def __repr__(self): class AlternateFloat (line 12) | class AlternateFloat(float): method __repr__ (line 13) | def __repr__(self): class TestSubclass (line 23) | class TestSubclass(TestCase): method test_int (line 24) | def test_int(self): method test_float (line 29) | def test_float(self): FILE: simplejson/tests/test_tool.py function strip_python_stderr (line 18) | def strip_python_stderr(stderr): function open_temp_file (line 24) | def open_temp_file(): class TestTool (line 33) | class TestTool(unittest.TestCase): method runTool (line 64) | def runTool(self, args=None, data=None): method test_stdin_stdout (line 77) | def test_stdin_stdout(self): method test_infile_stdout (line 82) | def test_infile_stdout(self): method test_infile_outfile (line 93) | def test_infile_outfile(self): FILE: simplejson/tests/test_tuple.py class TestTuples (line 6) | class TestTuples(unittest.TestCase): method test_tuple_array_dumps (line 7) | def test_tuple_array_dumps(self): method test_tuple_array_dump (line 23) | def test_tuple_array_dump(self): FILE: simplejson/tests/test_unicode.py class TestUnicode (line 8) | class TestUnicode(TestCase): method test_encoding1 (line 9) | def test_encoding1(self): method test_encoding2 (line 17) | def test_encoding2(self): method test_encoding3 (line 24) | def test_encoding3(self): method test_encoding4 (line 29) | def test_encoding4(self): method test_encoding5 (line 34) | def test_encoding5(self): method test_encoding6 (line 39) | def test_encoding6(self): method test_big_unicode_encode (line 44) | def test_big_unicode_encode(self): method test_big_unicode_decode (line 49) | def test_big_unicode_decode(self): method test_unicode_decode (line 54) | def test_unicode_decode(self): method test_object_pairs_hook_with_unicode (line 61) | def test_object_pairs_hook_with_unicode(self): method test_default_encoding (line 77) | def test_default_encoding(self): method test_unicode_preservation (line 81) | def test_unicode_preservation(self): method test_ensure_ascii_false_returns_unicode (line 86) | def test_ensure_ascii_false_returns_unicode(self): method test_ensure_ascii_false_bytestring_encoding (line 93) | def test_ensure_ascii_false_bytestring_encoding(self): method test_ensure_ascii_linebreak_encoding (line 104) | def test_ensure_ascii_linebreak_encoding(self): method test_invalid_escape_sequences (line 115) | def test_invalid_escape_sequences(self): method test_ensure_ascii_still_works (line 138) | def test_ensure_ascii_still_works(self): method test_strip_bom (line 149) | def test_strip_bom(self): FILE: simplejson/tool.py function main (line 17) | def main(): FILE: train.py function main (line 68) | def main(): function train (line 246) | def train(model_prime, model, fc, memory, ppo, optimizer, train_loader, ... function validate (line 391) | def validate(model_prime, model, fc, memory, ppo, _, val_loader, criterion, FILE: utils.py function mkdir_p (line 11) | def mkdir_p(path): class AverageMeter (line 22) | class AverageMeter(object): method __init__ (line 25) | def __init__(self): method reset (line 28) | def reset(self): method update (line 34) | def update(self, val, n=1): function accuracy (line 41) | def accuracy(output, target, topk=(1,)): function get_prime (line 53) | def get_prime(images, patch_size, interpolation='bicubic'): function get_patch (line 59) | def get_patch(images, action_sequence, patch_size): function adjust_learning_rate (line 76) | def adjust_learning_rate(optimizer, train_configuration, epoch, training... function save_checkpoint (line 100) | def save_checkpoint(state, is_best, checkpoint='checkpoint', filename='c... FILE: yacs/config.py class CfgNode (line 63) | class CfgNode(dict): method __init__ (line 74) | def __init__(self, init_dict=None, key_list=None, new_allowed=False): method _create_config_tree_from_dict (line 112) | def _create_config_tree_from_dict(cls, dic, key_list): method __getattr__ (line 137) | def __getattr__(self, name): method __setattr__ (line 143) | def __setattr__(self, name, value): method __str__ (line 164) | def __str__(self): method __repr__ (line 185) | def __repr__(self): method dump (line 188) | def dump(self, **kwargs): method merge_from_file (line 209) | def merge_from_file(self, cfg_filename): method merge_from_other_cfg (line 215) | def merge_from_other_cfg(self, cfg_other): method merge_from_list (line 219) | def merge_from_list(self, cfg_list): method freeze (line 248) | def freeze(self): method defrost (line 252) | def defrost(self): method is_frozen (line 256) | def is_frozen(self): method _immutable (line 260) | def _immutable(self, is_immutable): method clone (line 273) | def clone(self): method register_deprecated_key (line 277) | def register_deprecated_key(self, key): method register_renamed_key (line 287) | def register_renamed_key(self, old_name, new_name, message=None): method key_is_deprecated (line 301) | def key_is_deprecated(self, full_key): method key_is_renamed (line 308) | def key_is_renamed(self, full_key): method raise_key_rename_error (line 312) | def raise_key_rename_error(self, full_key): method is_new_allowed (line 325) | def is_new_allowed(self): method load_cfg (line 329) | def load_cfg(cls, cfg_file_obj_or_str): method _load_cfg_from_file (line 354) | def _load_cfg_from_file(cls, file_obj): method _load_cfg_from_yaml_str (line 368) | def _load_cfg_from_yaml_str(cls, str_obj): method _load_cfg_py_source (line 374) | def _load_cfg_py_source(cls, filename): method _decode_cfg_value (line 391) | def _decode_cfg_value(cls, value): function _valid_type (line 434) | def _valid_type(value, allow_cfg_node=False): function _merge_a_into_b (line 440) | def _merge_a_into_b(a, b, root, key_list): function _check_and_coerce_cfg_value_type (line 480) | def _check_and_coerce_cfg_value_type(replacement, original, key, full_key): function _assert_with_logging (line 522) | def _assert_with_logging(cond, msg): function _load_module_from_file (line 528) | def _load_module_from_file(name, filename): FILE: yacs/tests.py class SubCN (line 15) | class SubCN(CN): function get_cfg (line 19) | def get_cfg(cls=CN): class TestCfgNode (line 59) | class TestCfgNode(unittest.TestCase): method test_immutability (line 60) | def test_immutability(self): class TestCfg (line 88) | class TestCfg(unittest.TestCase): method test_copy_cfg (line 89) | def test_copy_cfg(self): method test_merge_cfg_from_cfg (line 96) | def test_merge_cfg_from_cfg(self): method test_merge_cfg_from_file (line 152) | def test_merge_cfg_from_file(self): method test_merge_cfg_from_list (line 163) | def test_merge_cfg_from_list(self): method test_deprecated_key_from_list (line 177) | def test_deprecated_key_from_list(self): method test_nonexistant_key_from_list (line 192) | def test_nonexistant_key_from_list(self): method test_load_cfg_invalid_type (line 198) | def test_load_cfg_invalid_type(self): method test_deprecated_key_from_file (line 204) | def test_deprecated_key_from_file(self): method test_renamed_key_from_list (line 219) | def test_renamed_key_from_list(self): method test_renamed_key_from_file (line 227) | def test_renamed_key_from_file(self): method test_load_cfg_from_file (line 241) | def test_load_cfg_from_file(self): method test_load_from_python_file (line 249) | def test_load_from_python_file(self): method test_invalid_type (line 259) | def test_invalid_type(self): method test__str__ (line 264) | def test__str__(self): method test_new_allowed (line 289) | def test_new_allowed(self): method test_new_allowed_bad (line 296) | def test_new_allowed_bad(self): class TestCfgNodeSubclass (line 302) | class TestCfgNodeSubclass(unittest.TestCase): method test_merge_cfg_from_file (line 303) | def test_merge_cfg_from_file(self): method test_merge_cfg_from_list (line 314) | def test_merge_cfg_from_list(self): method test_merge_cfg_from_cfg (line 328) | def test_merge_cfg_from_cfg(self):