- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 129 for created (0.09 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/xla_call_module_serialization.cc
return WalkResult::advance(); }); if (result.wasInterrupted()) { return failure(); } return builder.getArrayAttr(function_list); } // Creates a pruned module containing the XlaCallModule's entry function and // other functions transitively called by the entry function. FailureOr<OwningOpRef<ModuleOp>> PruneStablehloModule(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/default_quant_params.cc
} else { builder.setInsertionPointToStart(&block); } TypeAttr type_attr = TypeAttr::get(new_type); auto quantize = builder.create<TFL::QuantizeOp>(value.getLoc(), new_type, value, type_attr); auto dequantize = builder.create<TFL::DequantizeOp>( value.getLoc(), expressed_type, quantize.getOutput()); value.replaceAllUsesWith(dequantize);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.4K bytes - Viewed (0) -
tensorflow/cc/framework/while_gradients.cc
return strings::StrCat(forward_frame_name, "_backprop"); } // Creates a loop that counts the number of iterations performed by the // while loop associated with `while_ctx`. The returned output yields the // iteration count. Status AddForwardLoopCounter(WhileContext* while_ctx, const Scope& scope, Output* count) { // Create while loop: // i = 0 // while forward loop predicate is true:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/quantize_variables.cc
// Add dequantize. builder.setInsertionPointAfter(read_variable_op); auto new_read_variable_op = builder.create<ReadVariableOp>(read_variable_op.getLoc(), ref_qtype, read_variable_op.getResourceId()); auto new_dq_op = builder.create<DequantizeOp>( read_variable_op.getLoc(), read_variable_op.getResult().getType(), new_read_variable_op.getResult());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.5K 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/device_index_selector.cc
} DenseElementsAttr attr = DenseElementsAttr::get(type, b.getI32IntegerAttr(index)); auto constant = b.create<arith::ConstantOp>(op.getLoc(), type, attr); op.replaceAllUsesWith(constant.getOperation()); op.erase(); }); } // Creates an instance of the TensorFlow DeviceIndex selector pass. std::unique_ptr<OperationPass<func::FuncOp>> CreateDeviceIndexSelectorPass() {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 3.4K 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/tensorflow/transforms/constant_fold_utils.cc
// available during compilation or compilation only device for on demand // execution which may create a recursion if used for constant folding. std::string host_cpu = tensorflow::DeviceNameUtils::FullName( /*job=*/"localhost", /*replica=*/0, /*task=*/0, /*type=*/"CPU", /*id=*/0); absl::StatusOr<OpKernelRunner> runner = OpKernelRunner::Create( node_def->get()->op(), node_def->get()->name(), host_cpu, operands.size(),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/optimize_batch_matmul.cc
if (constant.getType().getRank() != 2) return failure(); // Create a tfl.transpose op that performs ZX transpose on `input`. auto create_z_x_transpose_op = [&](Value input) -> Value { RankedTensorType input_type = mlir::cast<RankedTensorType>(input.getType()); const int input_rank = input_type.getRank(); // Create a 1D I32 tensor for representing the dimension permutation.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 9.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_targets_test.cc
module_(mlir::ModuleOp::create(mlir::UnknownLoc::get(&context_))), builder_(&module_->getBodyRegion()) { context_.loadAllAvailableDialects(); } protected: mlir::MLIRContext context_; mlir::OwningOpRef<mlir::ModuleOp> module_; mlir::OpBuilder builder_; }; TEST_F(XlaLegalizeTargetsTest, CreatesConversionTargets) { auto const_int = builder_.create<mlir::arith::ConstantIntOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.4K bytes - Viewed (0)