Home
last modified time | relevance | path

Searched refs:rng_op (Results 1 – 3 of 3) sorted by relevance

/external/tensorflow/tensorflow/compiler/mlir/tensorflow/transforms/
Ddecompose_resource_ops.cc106 auto rng_op = cast<RngReadAndSkipOp>(op); in matchAndRewrite() local
109 if (!matchPattern(rng_op.alg(), m_Constant(&alg_constant))) { in matchAndRewrite()
132 if (op_type != rng_op.getType()) { in matchAndRewrite()
136 if (!HasResourceSubtype(rng_op.resource())) { in matchAndRewrite()
144 if (res_type != GetResourceSubtype(rng_op.resource())) { in matchAndRewrite()
152 rewriter.create<ReadVariableOp>(loc, res_type, rng_op.resource()); in matchAndRewrite()
170 rewriter.create<MulOp>(loc, u64_scalar, step_size, rng_op.delta()); in matchAndRewrite()
191 rewriter.create<AssignVariableOp>(loc, rng_op.resource(), new_state); in matchAndRewrite()
/external/tensorflow/tensorflow/compiler/mlir/xla/
Dhlo_function_importer.cc607 auto rng_op = Cast<HloRngBitGeneratorInstruction>(instruction); in ImportInstructionImpl() local
610 func_builder->getI32IntegerAttr(rng_op->algorithm()), operands[0]); in ImportInstructionImpl()
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dir_emitter_unnested.cc2462 auto rng_op = in EmitRngGetAndUpdateState() local
2469 BuildKernelThunkForMlir(rng_op, rng_op.state(), mlir_input.thunk_info, in EmitRngGetAndUpdateState()
2474 llvm_ir::RngGetAndUpdateState(rng_op.delta(), module_, &b_); in EmitRngGetAndUpdateState()
2476 const Shape shape = TypeToShape(rng_op.state().getType()); in EmitRngGetAndUpdateState()