MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / dtype

Method dtype

oneflow/api/cpp/framework/tensor.cpp:67–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67DType Tensor::dtype() const { return static_cast<DType>(tensor_->dtype()->data_type()); }
68
69void Tensor::zeros_() {
70 std::shared_ptr<of::one::LocalTensor> local_tensor = tensor_->AsLocalTensor().GetPtrOrThrow();

Callers 5

LoadCheckpointMethod · 0.45
TESTFunction · 0.45
TESTFunction · 0.45

Calls 1

data_typeMethod · 0.45

Tested by 2

TESTFunction · 0.36
TESTFunction · 0.36