-
Notifications
You must be signed in to change notification settings - Fork 2
Triton data converter (CMSSW_11_2_0_pre9) #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 1 commit
2762c02
05f2ca0
b4a3f2c
5bade57
d9bf227
920ee4f
47fb54c
70a522b
037c8b0
90ce2ed
e653471
6e336a3
8ebdcd0
15c99a4
81077f0
3231ad8
daabb94
2dabb92
9c14bf5
4037115
9faebc0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,40 @@ | |
| "TritonGraphProducer": "gat_test", | ||
| } | ||
|
|
||
| inConvs = { | ||
| "TritonImageProducer": cms.VPSet( | ||
|
||
| cms.PSet( | ||
| converterName = cms.string("FloatStandardConverter"), | ||
| inputName = cms.string("gpu_0/data"), | ||
| ), | ||
| ), | ||
| "TritonGraphProducer": cms.VPSet( | ||
| cms.PSet( | ||
| converterName = cms.string("FloatStandardConverter"), | ||
| inputName = cms.string("x__0"), | ||
| ), | ||
| cms.PSet( | ||
| converterName = cms.string("Int64StandardConverter"), | ||
| inputName = cms.string("edgeindex__1"), | ||
| ), | ||
| ), | ||
| } | ||
|
|
||
| outConvs = { | ||
| "TritonImageProducer": cms.VPSet( | ||
| cms.PSet( | ||
| converterName = cms.string("FloatStandardConverter"), | ||
| outputName = cms.string("gpu_0/softmax"), | ||
| ), | ||
| ), | ||
| "TritonGraphProducer": cms.VPSet( | ||
| cms.PSet( | ||
| converterName = cms.string("FloatStandardConverter"), | ||
| outputName = cms.string("logits__0"), | ||
| ), | ||
| ), | ||
| } | ||
|
|
||
| if options.producer not in models: | ||
| raise ValueError("Unknown producer: "+options.producer) | ||
|
|
||
|
|
@@ -49,9 +83,8 @@ | |
| modelVersion = cms.string(""), | ||
| verbose = cms.untracked.bool(options.verbose), | ||
| allowedTries = cms.untracked.uint32(0), | ||
| converterDefinition = cms.PSet( | ||
| converterName = cms.string("FloatStandardConverter"), | ||
| ), | ||
| inputConverters = inConvs[options.producer], | ||
| outputConverters = outConvs[options.producer], | ||
| ) | ||
| ) | ||
| if options.producer=="TritonImageProducer": | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.