NewLang Project
Yet another programm language
Loading...
Searching...
No Matches
system.cpp File Reference
#include <sys/sysinfo.h>
#include <sys/time.h>
#include "warning_push.h"
#include <torch/torch.h>
#include <ATen/ATen.h>
#include "warning_pop.h"
#include <fmt/core.h>
#include "system.h"
#include "runtime.h"
Include dependency graph for system.cpp:

Go to the source code of this file.

Macros

#define ARG_TEST_COUNT(cnt)
 

Functions

ObjType getSummaryTensorType (Obj *obj, ObjType start)
 
ObjPtr CreateTensor (torch::Tensor tensor)
 

Variables

char ** environ
 

Macro Definition Documentation

◆ ARG_TEST_COUNT

#define ARG_TEST_COUNT ( cnt)
Value:
if (in.size() != cnt + 1) { \
LOG_RUNTIME("Only %d argument expected!", cnt); \
}

Definition at line 192 of file system.cpp.

Referenced by newlang::runtime::System::getenv(), and newlang::runtime::System::system().

Function Documentation

◆ getSummaryTensorType()

ObjType getSummaryTensorType ( Obj * obj,
ObjType start )

Definition at line 546 of file object.cpp.

◆ CreateTensor()

Variable Documentation

◆ environ

char** environ

Definition at line 285 of file system.cpp.

Referenced by newlang::runtime::System::getenviron().