MCPcopy
hub / github.com/microsoft/Cream / FNBlock

Class FNBlock

TinyCLIP/src/open_clip/model.py:856–862  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

854
855
856class FNBlock(nn.Module):
857 def __init__(self, fn):
858 super().__init__()
859 self.fn = fn
860
861 def forward(self, *args, **kwargs):
862 return self.fn(*args, **kwargs)
863
864
865class FakeDDP(nn.Module):

Callers 2

use_teacher_imageMethod · 0.85
use_teacher_textMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected