MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / is_valid

Method is_valid

Source/Falcor/Utils/Scripting/ndarray.h:428–428  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426 size_t shape(size_t i) const { return m_dltensor.shape[i]; }
427 int64_t stride(size_t i) const { return m_dltensor.strides[i]; }
428 bool is_valid() const { return m_handle != nullptr; }
429 int32_t device_type() const { return m_dltensor.device.device_type; }
430 int32_t device_id() const { return m_dltensor.device.device_id; }
431 detail::ndarray_handle* handle() const { return m_handle; }

Callers 2

verifyDataMethod · 0.80
loadMethod · 0.80

Calls

no outgoing calls

Tested by 1

verifyDataMethod · 0.64