(name)
| 106 | |
| 107 | |
| 108 | def get_sampler(name): |
| 109 | try: |
| 110 | return SAMPLER_REGISTRY[name] |
| 111 | except KeyError: |
| 112 | raise ValueError( |
| 113 | f"Attempted to use contextsampler '{name}', but no sampling strategy for this name found! Supported model names: {', '.join(SAMPLER_REGISTRY.keys())}" |
| 114 | ) |
nothing calls this directly
no outgoing calls
no test coverage detected