This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <type_traits> | |
#include "peg.inl.h" | |
@meta void check_array(@meta const access &a) { | |
static_assert(std::is_array<decltype(@(a.tensor_name))>::value); | |
static_assert(std::rank<decltype(@(a.tensor_name))>::value == a.A.rows); | |
} | |
@macro void foo(const char* str) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="root"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from max.engine import ( | |
InputSpec, | |
InferenceSession, | |
Model, | |
TensorMap, | |
NamedTensor, | |
) | |
from pathlib import Path | |
from python import Python, PythonObject | |
from max.tensor import Tensor, TensorSpec, TensorShape |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import argparse | |
import wave | |
import time | |
import numpy as np | |
import tokenizers | |
# | |
# To run: |
OlderNewer