JittorMirror/extern/cuda/curand/ops/curand_random_op.h

22 lines
678 B
C++

// ***************************************************************
// Copyright (c) 2020 Jittor. Authors:
// Guoye Yang <498731903@qq.com>.
// Dun Liang <randonlang@gmail.com>.
// All Rights Reserved.
// This file is subject to the terms and conditions defined in
// file 'LICENSE.txt', which is part of this source code package.
// ***************************************************************
#pragma once
#include "op.h"
namespace jittor {
struct CurandRandomOp : Op {
Var* output;
CurandRandomOp(NanoVector shape, NanoString dtype=ns_float32);
const char* name() const override { return "curand_random"; }
DECLARE_jit_run;
};
} // jittor