Home
last modified time | relevance | path

Searched refs:DataDim (Results 1 – 5 of 5) sorted by relevance

/third_party/mindspore/tests/ut/cpp/ir/
Dmeta_tensor_test.cc141 ASSERT_EQ(0, tensor.DataDim()); in TEST_F()
163 ASSERT_EQ(0, tensor_ptr->DataDim()); in TEST_F()
278 std::cout << "Dim: " << tensor->DataDim() << std::endl; in TEST_F()
279 ASSERT_EQ(2, tensor->DataDim()); in TEST_F()
300 std::cout << "Dim: " << tensor->DataDim() << std::endl; in TEST_F()
301 ASSERT_EQ(2, tensor->DataDim()); in TEST_F()
/third_party/mindspore/mindspore/ccsrc/pybind_api/ir/
Dtensor_py.cc276 …tensor.data_c(), tensor.data().itemsize(), GetPyTypeFormat(tensor.data_type()), tensor.DataDim(), … in GetPyBufferInfo()
597 .def("dim", &Tensor::DataDim, R"mydelimiter( in __anonff91c9900102()
/third_party/mindspore/mindspore/core/ir/
Dtensor.h224 int DataDim() const { return static_cast<int>(data().ndim()); } in DataDim() function
Dpattern_matcher.h618 if ((tensor_ptr->DataSize() > 1) || (tensor_ptr->DataDim() > 0)) {
/third_party/mindspore/mindspore/ccsrc/backend/optimizer/graph_kernel/
Dgraph_kernel_helper.cc126 auto origin_ndim = IntToSize(tensor->DataDim()); in ConvertToScalarTensor()