MCPcopy Create free account
hub / github.com/MegEngine/MegEngine / as

Method as

imperative/src/impl/transformations/format.cpp:15–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13using FT = Format::Type;
14
15TypedValueRef<FormattedTensorValue> FormatTransformation::as(
16 const FormattedTensorValue& tensor, const FT& target) const {
17 return m_value_type.make(tensor.value(), target);
18}
19
20TypedValueRef<FormattedTensorValue> FormatTransformation::to(
21 const FormattedTensorValue& tensor, const FT& target,

Callers 3

apply_transformationMethod · 0.45
apply_get_attrMethod · 0.45
apply_transformationMethod · 0.45

Calls 2

makeMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected