MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / HandleBitcast

Method HandleBitcast

tensorflow/compiler/xla/service/hlo_evaluator.cc:394–402  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

392}
393
394Status HloEvaluator::HandleBitcast(HloInstruction* bitcast) {
395 const Literal& operand_literal = GetEvaluatedLiteralFor(bitcast->operand(0));
396 Literal result(bitcast->shape());
397 TF_RET_CHECK(operand_literal.size_bytes() == result.size_bytes());
398 memcpy(result.untyped_data(), operand_literal.untyped_data(),
399 operand_literal.size_bytes());
400 evaluated_[bitcast] = std::move(result);
401 return Status::OK();
402}
403
404Status HloEvaluator::HandleGetDimensionSize(
405 HloInstruction* get_dimension_size) {

Callers

nothing calls this directly

Calls 4

untyped_dataMethod · 0.80
operandMethod · 0.45
shapeMethod · 0.45
size_bytesMethod · 0.45

Tested by

no test coverage detected