| 392 | } |
| 393 | |
| 394 | Status 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 | |
| 404 | Status HloEvaluator::HandleGetDimensionSize( |
| 405 | HloInstruction* get_dimension_size) { |
nothing calls this directly
no test coverage detected