MCPcopy
hub / github.com/pytorch/vision / test_inception_v3_eval

Function test_inception_v3_eval

test/test_models.py:544–556  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

542
543
544def test_inception_v3_eval():
545 kwargs = {}
546 kwargs["transform_input"] = True
547 kwargs["aux_logits"] = True
548 kwargs["init_weights"] = False
549 name = "inception_v3"
550 model = models.Inception3(**kwargs)
551 model.aux_logits = False
552 model.AuxLogits = None
553 model = model.eval()
554 x = torch.rand(1, 3, 299, 299)
555 _check_jit_scriptable(model, (x,), unwrapper=script_model_unwrapper.get(name, None))
556 _check_input_backprop(model, x)
557
558
559def test_fasterrcnn_double():

Callers

nothing calls this directly

Calls 3

_check_jit_scriptableFunction · 0.85
_check_input_backpropFunction · 0.85
getMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…