text
stringlengths 0
2.2M
|
---|
(See accompanying file LICENSE_1_0.txt in the root directory or
|
copy at http://www.boost.org/LICENSE_1_0.txt)
|
MiLi IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
|
SHALL THE COPYRIGHT HOLDERS OR ANYONE DISTRIBUTING THE SOFTWARE BE LIABLE
|
FOR ANY DAMAGES OR OTHER LIABILITY, WHETHER IN CONTRACT, TORT OR OTHERWISE,
|
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
DEALINGS IN THE SOFTWARE.
|
This is an example file.
|
*/
|
#include <iostream>
|
#include <cstdio>
|
#include "mili/mili.h"
|
using namespace mili;
|
class file
|
{
|
public:
|
file(std::string path): _file(std::fopen(path.c_str(), "w")) {}
|
void close()
|
{
|
fclose(_file);
|
}
|
void write(std::string str)
|
{
|
std::fputs(str.c_str(), _file);
|
}
|
private:
|
std::FILE* _file;
|
};
|
int main()
|
{
|
file fi("file");
|
RAII<file, &file::close> rs(fi);
|
fi.write("new line in the file");
|
return 0;
|
}
|
/*******************************************************************************
|
* Copyright 2018-2020 Intel Corporation
|
*
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
* you may not use this file except in compliance with the License.
|
* You may obtain a copy of the License at
|
*
|
* http://www.apache.org/licenses/LICENSE-2.0
|
*
|
* Unless required by applicable law or agreed to in writing, software
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
* See the License for the specific language governing permissions and
|
* limitations under the License.
|
*******************************************************************************/
|
#include "dnnl_test_common.hpp"
|
#include "gtest/gtest.h"
|
#include "oneapi/dnnl/dnnl.h"
|
#include "test_gemm_common.hpp"
|
namespace dnnl {
|
using gemm_test = gemm_test_common<float, float, float>;
|
TEST_P(gemm_test, TestGEMM) {}
|
#define TEST_CASE_NAME_PREFIX fp32
|
#define FP32
|
#include "gemm_in.h"
|
} // namespace dnnl
|
/*
|
Copyright 2009-2020, Sumeet Chhetri
|
Licensed under the Apache License, Version 2.0 (the "License");
|
you may not use this file except in compliance with the License.
|
You may obtain a copy of the License at
|
http://www.apache.org/licenses/LICENSE-2.0
|
Unless required by applicable law or agreed to in writing, software
|
distributed under the License is distributed on an "AS IS" BASIS,
|
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
See the License for the specific language governing permissions and
|
limitations under the License.
|
*/
|
#include "Reflector.h"
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.