Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
67
DType Tensor::dtype() const { return static_cast<DType>(tensor_->dtype()->data_type()); }
68
69
void Tensor::zeros_() {
70
std::shared_ptr<of::one::LocalTensor> local_tensor = tensor_->AsLocalTensor().GetPtrOrThrow();
Callers
5
__DenseElementsAttrToTensor
Function · 0.45
TensorToDenseElementsAttr
Function · 0.45
LoadCheckpoint
Method · 0.45
TEST
Function · 0.45
TEST
Function · 0.45
Calls
1
data_type
Method · 0.45
Tested by
2
TEST
Function · 0.36
TEST
Function · 0.36