MCPcopy Create free account
hub / github.com/intel/neural-compressor / FakeModel

Class FakeModel

test/common/test_common.py:76–84  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75
76class FakeModel:
77 def __init__(self) -> None:
78 self.name = "fake_model"
79
80 def __call__(self, x) -> Any:
81 return x
82
83 def __repr__(self) -> str:
84 return "FakeModel"
85
86
87class FakeOpType:

Callers 3

build_simple_fake_modelFunction · 0.85
test_mixed_two_algosMethod · 0.85
test_autotuneMethod · 0.85

Calls

no outgoing calls

Tested by 3

build_simple_fake_modelFunction · 0.68
test_mixed_two_algosMethod · 0.68
test_autotuneMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…