- Sort Score
- Result 10 results
- Languages All
Results 91 - 100 of 129 for created (0.41 sec)
-
tensorflow/compiler/mlir/tensorflow/transforms/freeze_global_tensors.cc
} } // Replace the arg with a tf.Const op in the function body. builder.setInsertionPointToStart(&func.getBody().front()); auto const_op = builder.create<TF::ConstOp>(global_tensor.getLoc(), *global_tensor.getValue()); args_to_erase.set(val.getArgNumber()); for (auto read_op : read_variable_ops_to_erase) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.8K 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/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/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/tensorflow/transforms/decompose_resource_ops.cc
for (int i = 0; i < counter_size; ++i) { Value word = counter[i]; Value word_u64 = rewriter.create<CastOp>(loc, word_u64_type, word); Value new_word_u64 = rewriter.create<AddV2Op>(loc, word_u64, increment); Value new_word = rewriter.create<CastOp>(loc, word_type, new_word_u64); pack_args.push_back(new_word);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 8.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/lite/tfl_to_std.cc
b.setInsertionPoint(op); if (auto dq = llvm::dyn_cast<DequantizeOp>(op)) { auto dcast = b.create<quantfork::DequantizeCastOp>( dq.getLoc(), dq.getOutput().getType(), dq.getInput()); dq.getOutput().replaceAllUsesWith(dcast); dq.erase(); } else if (auto q = llvm::dyn_cast<QuantizeOp>(op)) { auto qcast = b.create<quantfork::QuantizeCastOp>( q.getLoc(), q.getOutput().getType(), q.getInput());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 02:50:01 UTC 2024 - 3.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/saved_model/saved_model_test.cc
auto runtime = tensorflow::tfrt_stub::Runtime::Create(/*num_inter_op_threads=*/1); tfrt_stub::GraphExecutionOptions options(runtime.get()); options.compile_options.device_target = TfrtDeviceInfraTarget::kGpu; TF_ASSERT_OK_AND_ASSIGN( std::unique_ptr<tfrt_stub::FallbackState> fallback_state, tfrt_stub::FallbackState::Create(SessionOptions(), FunctionDefLibrary()));
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 13 01:17:29 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/add_functions_for_exported_names.cc
f.setName(StringAttr::get(f->getContext(), f.getName() + "_internal")); for (StringRef name : llvm::reverse(exported_names)) { // Create a "trampoline" function with the given name. So given // func bar(...) {exported_names = ["foo"]} // we create // func foo(...) { // return bar(...) // } func::FuncOp other = f.cloneWithoutRegions(); other.setName(name);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 19 08:06:04 UTC 2023 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/init_text_file_to_import.cc
SmallVector<int64_t, 8> line_nums; line_nums.resize(lines.size()); std::iota(line_nums.begin(), line_nums.end(), 0); // Create constant ops for keys an values. Value key_constant_tensor = rewriter.create<arith::ConstantOp>( op.getLoc(), DenseStringElementsAttr::get( RankedTensorType::get(static_cast<int64_t>(lines.size()),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Nov 03 12:35:38 UTC 2022 - 6.1K bytes - Viewed (0)