Skip to content

DeepInfer: High-performance, large-scale inference framework for DeepSeek models

Python
1.8 KB
Raw Blame
#include "graph_timer.hpp"

#include <stdexcept>

namespace deepinfer::graph_timer {

EventHandle::EventHandle() { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

void EventHandle::record(int64_t stream, bool capture_external) const {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

void EventHandle::synchronize() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

bool EventHandle::query() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

float EventHandle::elapsed_time(const EventHandle &end_event) const {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

bool EventHandle::operator==(const EventHandle &other) const {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

std::size_t EventHandle::hash() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

EventHandle EventRecordNodeHandle::get_event() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

void EventRecordNodeHandle::set_event(const EventHandle &event) {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

GraphHandle::GraphHandle(py::object graph) : graph_(std::move(graph)) {}

std::vector<EventRecordNodeHandle> GraphHandle::get_event_record_nodes() const {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

bool GraphHandle::operator==(const GraphHandle &other) const {
    throw std::runtime_error("NPU graph timer primitives are not implemented yet");
}

std::size_t GraphHandle::hash() const { throw std::runtime_error("NPU graph timer primitives are not implemented yet"); }

} // namespace deepinfer::graph_timer