Skip to content

Commit cfae096

Browse files
committed
merge main branch; format code
2 parents 68978c3 + 324f7a9 commit cfae096

2 files changed

Lines changed: 5 additions & 43 deletions

File tree

artifacts/README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# OSDI'20 Artifacts Evaluation
22

3-
OSDI'20 Artifact Evaluation of paper #292, titled "[Rammer: Enabling Holistic Deep Learning Compiler Optimizations with rTasks](https://www.usenix.org/conference/osdi20/presentation/ma)".
3+
- OSDI'20 Artifact Evaluation of paper #292, titled "[Rammer: Enabling Holistic Deep Learning Compiler Optimizations with rTasks](https://www.usenix.org/conference/osdi20/presentation/ma)".
4+
Please refer to the [osdi20_artifact branch](https://github.com/microsoft/nnfusion/tree/osdi20_artifact/artifacts)**
45

5-
**Please refer to the [osdi20_artifact branch](https://github.com/microsoft/nnfusion/tree/osdi20_artifact/artifacts)**
6+
7+
- OSDI'22 Artifact Evaluation of paper #158, titled "[Roller: Fast and Efficient Tensor Compilation for Deep Learning](https://www.usenix.org/conference/osdi22/presentation/zhu)".
8+
Please refer to the [osdi22_artifact branch](https://github.com/microsoft/nnfusion/tree/osdi22_artifact/artifacts)**

src/nnfusion/frontend/onnx_import/util/util.hpp

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -149,47 +149,6 @@ namespace nnfusion
149149
{
150150
return __get_raw_data<half_float::half>(tensor.raw_data());
151151
}
152-
else
153-
{
154-
NNFUSION_LOG(NNFUSION_WARNING) << "Have no raw data" << endl;
155-
}
156-
157-
if (tensor.data_type() == onnx::TensorProto_DataType_FLOAT16)
158-
{
159-
nnfusion::Shape shape{std::begin(tensor.dims()), std::end(tensor.dims())};
160-
size_t num_element = shape_size(shape);
161-
std::vector<int32_t> raw_data = __get_data<int32_t>(tensor.int32_data());
162-
std::vector<half_float::half> ret((num_element + 1) / 2);
163-
uint32_t* src_p = (uint32_t*)raw_data.data();
164-
uint16_t* dst_p = (uint16_t*)ret.data();
165-
for (size_t i = 0; i < num_element; i++)
166-
{
167-
NNFUSION_CHECK((src_p[i] & 0xFFFF0000) == 0);
168-
dst_p[i] = src_p[i] & 0x0000FFFF;
169-
}
170-
if (num_element % 2 == 1)
171-
{
172-
dst_p[num_element] = 0;
173-
}
174-
175-
return ret;
176-
}
177-
if (tensor.data_type() == onnx::TensorProto_DataType_FLOAT)
178-
{
179-
return __get_data<half_float::half>(tensor.float_data());
180-
}
181-
if (tensor.data_type() == onnx::TensorProto_DataType_INT32)
182-
{
183-
return __get_data<half_float::half>(tensor.int32_data());
184-
}
185-
if (tensor.data_type() == onnx::TensorProto_DataType_INT64)
186-
{
187-
return __get_data<half_float::half>(tensor.int64_data());
188-
}
189-
if (tensor.data_type() == onnx::TensorProto_DataType_UINT64)
190-
{
191-
return __get_data<half_float::half>(tensor.uint64_data());
192-
}
193152
NNFUSION_CHECK_FAIL()
194153
<< "invalid data type: "
195154
<< onnx::TensorProto_DataType_Name(

0 commit comments

Comments
 (0)