MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TWithDefaults

Method TWithDefaults

tests/cpp/testing_object.h:454–457  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452class TWithDefaults : public ObjectRef {
453 public:
454 explicit TWithDefaults(int64_t required_val, int64_t default_int = 42,
455 String default_str = "default", bool default_bool = true) {
456 data_ = make_object<TWithDefaultsObj>(required_val, default_int, default_str, default_bool);
457 }
458
459 TVM_FFI_DEFINE_OBJECT_REF_METHODS_NULLABLE(TWithDefaults, ObjectRef, TWithDefaultsObj);
460};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected