MCPcopy Create free account
hub / github.com/drinkingcoder/FlowFormer-Official / build_flowformer

Function build_flowformer

core/FlowFormer/__init__.py:2–9  ·  view source on GitHub ↗
(cfg)

Source from the content-addressed store, hash-verified

1import torch
2def build_flowformer(cfg):
3 name = cfg.transformer
4 if name == 'latentcostformer':
5 from .LatentCostFormer.transformer import FlowFormer
6 else:
7 raise ValueError(f"FlowFormer = {name} is not a valid architecture!")
8
9 return FlowFormer(cfg[name])

Callers 4

trainFunction · 0.90
build_modelFunction · 0.90

Calls 1

FlowFormerClass · 0.90

Tested by

no test coverage detected