- Sort Score
- Result 10 results
- Languages All
Results 181 - 190 of 313 for created (0.08 sec)
-
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
const llvm::StringMap<Attribute>& derived_attrs) const { // Create the new op Location loc = call_op.getLoc(); rewriter.setInsertionPointAfter(call_op); std::string tf_op_name = GetTFOpName(call_op.getCallee()); OperationState new_state(loc, tf_op_name, inputs, output_types, attr_list); Operation* new_op = rewriter.create(new_state); if (materialize_derived_attrs_) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc
auto launch = builder->create<tf_device::LaunchOp>( before_op->getLoc(), builder->getStringAttr(host_device), launch_result_types); launch.getBody().push_back(launch_block); builder->setInsertionPointToEnd(&launch.GetBody()); builder->create<tf_device::ReturnOp>(before_op->getLoc(), launch_results); return launch; } // Creates a new_launch after `before_op` with `ops_to_move` from
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 17.4K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/propagate_quantize_type.cc
if (failed(applyPatternsAndFoldGreedily(func, frozen_patterns))) { func.emitError() << "quant-propagate-quantize-type failed."; signalPassFailure(); } } } } // namespace // Creates an instance of the TensorFlow dialect PropagateQuantizeType pass. std::unique_ptr<OperationPass<ModuleOp>> CreatePropagateQuantizeTypePass() { return std::make_unique<PropagateQuantizeType>(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/host_runtime/tpu_variable_runtime_reformatting.cc
// supported. const auto& device_list = devices.find(tensorflow::GetDeviceAliasForLogicalCore(0))->getSecond(); // Create the state variable for each device. for (llvm::StringRef device : device_list) { state_vars.push_back(builder->create<TF::VarHandleOp>( loc, llvm::ArrayRef<Type>{RankedTensorType::get( {}, TF::ResourceType::get(llvm::ArrayRef<TensorType>{key_type},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
auto static_shape_attr = mlir::DenseIntElementsAttr::get(static_shape_type, static_shape); return rewriter.create<TF::ConstOp>(loc, static_shape_attr).getOutput(); } // If the shape is not static, create a new ShapeOp. BoolAttr false_attr = rewriter.getBoolAttr(false); return rewriter .create<TF::ShapeOp>(loc, input, /*use_32bit=*/false_attr) .getOutput(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
rewriter.create<SubtractOp>(loc, b_max_diag_len, diag_len_d), b_zero); // x = max(d, 0) - offset // y = max(-d, 0) - offset Value x = rewriter.create<SubtractOp>( loc, rewriter.create<MaxOp>(loc, d, b_zero), offset); Value y = rewriter.create<SubtractOp>( loc, rewriter.create<MaxOp>(loc, neg_d, b_zero), offset); Value n_plus_x = rewriter.create<AddOp>(loc, iotaN, x);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc
auto out_segids_cst = builder.create<TF::ConstOp>( builder.getI32TensorAttr(flattened_out_segids)); auto contracting_segids_cst = builder.create<TF::ConstOp>( builder.getI32TensorAttr(flattened_contracting_segids)); auto num_segids_tensor = builder.create<TF::ConstOp>(builder.getI32IntegerAttr(1)); auto flattened_out_dims = builder.create<TF::UnsortedSegmentProdOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 154.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/tfrt_fallback/batch_function_fallback_benchmark_test.cc
#include "tfrt/support/rc_array.h" // from @tf_runtime #include "tfrt/tensor/dense_host_tensor.h" // from @tf_runtime #include "tfrt/tensor/tensor.h" // from @tf_runtime namespace tensorflow { namespace { // Creates a BEF file with a program that runs // tfrt_fallback_async.batch_function with a empty function forwarding inputs or // outputs. std::pair<tfrt::BefBuffer, tfrt::RCReference<tfrt::BEFFile>> CreateBefFile(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Dec 08 08:08:48 UTC 2023 - 6.3K bytes - Viewed (0) -
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)