MCPcopy Create free account
hub / github.com/NVIDIA/DALI / Init

Method Init

dali/operators/generic/slice/subscript.h:47–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45
46struct SubscriptArg {
47 void Init(const OpSpec &spec, const std::string &name) {
48 this->name = name;
49 src = spec.HasTensorArgument(name)
50 ? ArgSource::Input
51 : spec.HasArgument(name)
52 ? ArgSource::Value
53 : ArgSource::None;
54 if (src == ArgSource::Value)
55 scalar_value = spec.GetArgument<int64_t>(name);
56 }
57
58 bool IsDefined() const {
59 return src != ArgSource::None;

Callers 2

InitMethod · 0.45
LoadMethod · 0.45

Calls 1

HasArgumentMethod · 0.80

Tested by

no test coverage detected