- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 155 for created (0.07 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_quantize_drq.cc
return false; } } rewriter.setInsertionPointAfter(op); auto q = rewriter.create<quantfork::QuantizeCastOp>(op->getLoc(), cast_type, op.getResult()); auto dq = rewriter.create<quantfork::DequantizeCastOp>(op->getLoc(), expressed_type, q);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/c/experimental/stream_executor/stream_executor.cc
TF_RETURN_IF_ERROR(c_event->Create()); return std::move(c_event); } absl::StatusOr<std::unique_ptr<Stream>> CreateStream( std::optional<std::variant<StreamPriority, int>> priority = std::nullopt) override { auto stream = std::make_unique<CStream>(&device_, stream_executor_, this); TF_RETURN_IF_ERROR(stream->Create()); return std::move(stream); } private:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jun 14 07:39:19 UTC 2024 - 27.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
IntegerAttr zp_attr; if (!matchPattern(zp, m_Constant(&zp_attr))) { return failure(); } rewriter.setInsertionPoint(zp.getDefiningOp()); auto zp_tensor = rewriter.create<TF::ConstOp>( loc, RankedTensorType::get({}, zp.getType()), zp_attr); auto zp_cast = rewriter.create<CastOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tpu_rewrite_device_util_test.cc
context.loadDialect<mlir::tf_device::TensorFlowDeviceDialect>(); mlir::OwningOpRef<mlir::ModuleOp> module_ref = mlir::ModuleOp::create(mlir::UnknownLoc::get(&context)); mlir::OpBuilder builder(module_ref->getBodyRegion()); llvm::SmallVector<mlir::Type, 8> result_types; auto cluster = builder.create<mlir::tf_device::ClusterOp>( mlir::UnknownLoc::get(&context), result_types); cluster->setAttr(kNumCoresPerReplicaAttr,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Apr 26 09:37:10 UTC 2024 - 46.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/prepare_quantize.cc
/*quant_dim=*/-1, num_bits, narrow_range, is_signed); builder.setInsertionPoint(block, insertion_point); auto q_op = builder.create<quantfork::QuantizeCastOp>( loc, params.getValue(), arg); auto dq_op = builder.create<quantfork::DequantizeCastOp>( loc, input_type, q_op.getResult()); arg.replaceAllUsesWith(dq_op.getResult()); q_op.setOperand(arg); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/prepare_lifting.cc
if (!dq_op) { auto mul_op = builder.create<TF::MulOp>(loc, value, multiplier); return mul_op.getResult(); } auto q_op = dq_op.getArg().getDefiningOp<quantfork::QuantizeCastOp>(); if (!q_op) return {}; Value float_value = q_op.getArg(); Value new_value = builder.create<TF::MulOp>(loc, float_value, multiplier);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 17 17:58:54 UTC 2024 - 13.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/stablehlo/passes/defer_activation_transpose.cc
} // Convenience function to create a `TransposeOp` with a given `permutation`. // The Location is set as `input`'s loc. TransposeOp CreateTransposeOp(Value input, const ArrayRef<int64_t> permutation, PatternRewriter& rewriter) { return rewriter.create<TransposeOp>( input.getLoc(), input, rewriter.getDenseI64ArrayAttr(permutation)); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/dump_mlir_util.cc
if (!status.ok()) { LOG(WARNING) << "cannot create directory '" << path << "': " << status.message(); return; } path += "/mlir_reproducer_"; if (!tensorflow::Env::Default()->CreateUniqueFileName(&path, ".mlir")) { LOG(WARNING) << "cannot create unique filename, won't enable MLIR crash " "reproducer."; return;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 05 03:03:46 UTC 2024 - 11.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/prepare_tpu_computation_for_tf_export.cc
RankedTensorType::get({3}, rewriter.getType<TF::StringType>()); auto dynamic_key = rewriter.create<TF::_XlaCompileMlirPlaceholderProgramKeyOp>( func.getLoc(), /*program=*/result_type, llvm::ArrayRef<Value>{}); auto recv_at_host = rewriter.create<TF::_XlaRecvAtHostOp>( func.getLoc(), op.getOperandTypes(), /*dynamic_key=*/dynamic_key, op.getSendKeyAttr(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback_async.cc
} // To guarantee that the new values are in the same order as the old // ones, we create individual ops for the non-canonicalizable operands. // For simplicity, we don't consolidate these ops when all the // non-canonicalizable operands are adjacent. new_values.push_back( rewriter .create<fallback_async::CoreRTTensorHandleToFallbackTensorOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jun 08 01:19:25 UTC 2023 - 15.6K bytes - Viewed (0)