- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 235 for created (0.15 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/passes/add_quantization_unit_loc.cc
return isa<NameLoc>(loc) || (isa<CallSiteLoc>(loc) && isa<NameLoc>(mlir::cast<CallSiteLoc>(loc).getCallee())); }); } // Finds the pattern of the location created by `ImporterBase::GetLocation` // in `tensorflow/compiler/mlir/tensorflow/translate/import_model.cc`. void FindQuantizationUnitsRecursively(Location loc, SmallVector<QuantizationUnit>& units) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 7.4K bytes - Viewed (0) -
tensorflow/c/c_api_test.cc
TF_Run(session, run_options, nullptr, nullptr, 0, nullptr, nullptr, 0, nullptr, 0, run_metadata, s); EXPECT_EQ(TF_INVALID_ARGUMENT, TF_GetCode(s)) << TF_Message(s); EXPECT_EQ("Session was not created with a graph before Run()!", string(TF_Message(s))); TF_DeleteBuffer(run_metadata); TF_DeleteBuffer(run_options); TF_DeleteDeprecatedSession(session, s);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 15 03:35:10 UTC 2024 - 96.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lift_variables.cc
// Create tensor attribute for this variable. absl::StatusOr<ElementsAttr> tensor_attr_or = ConvertTensor(tensor, &builder); if (!tensor_attr_or.ok()) { return module.emitOpError() << "failed to convert tensor (name: " << name.str() << ")"; } ElementsAttr tensor_attr = tensor_attr_or.value(); builder.create<tf_saved_model::GlobalTensorOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 23 09:05:47 UTC 2024 - 7.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
namespace mlir { namespace TF { namespace { // Creates ConstOp for int32_t value. ConstOp createI32ConstOp(int32_t value, Location loc, PatternRewriter* rewriter) { auto int_attr = IntegerAttr::get(rewriter->getIntegerType(32), value); return rewriter->create<ConstOp>(loc, int_attr); } // Creates ConstantOp for array of int32_t.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfuse_batch_norm_pass.cc
return failure(); } // Compute multiplier = scale / sqrt(variance + epsilon) Value multiplier = rewriter.create<mhlo::AddOp>( bn_op.getLoc(), bn_op.getVariance(), epsilon); multiplier = rewriter.create<mhlo::RsqrtOp>(bn_op.getLoc(), multiplier); multiplier = rewriter.create<mhlo::MulOp>(bn_op.getLoc(), multiplier, bn_op.getScale());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.2K bytes - Viewed (0) -
tensorflow/compiler/jit/xla_tpu_device.cc
absl::StrCat("device: ", DEVICE_TPU_SYSTEM, " device")); devices->push_back(std::make_unique<VirtualDevice>(options.env, attrs)); VLOG(1) << "Created TPU_SYSTEM device. This host has " << device_count << " TPUs"; return absl::OkStatus(); } } // namespace void RegisterTpuDeviceToDeviceCopy() { static auto* const register_tpu_tpu_copy = new CopyTensor::Registration(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue May 28 22:53:47 UTC 2024 - 20.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/internal/passes/tpu_cluster_formation.cc
if (tpu_replicated_input.getIsMirroredVariable()) { mirrored_variable_indices.push_back(pos_and_input.index()); } } // Create replicate op. auto result_types = GetClusterResultTypes(cluster, partitioned_outputs); auto replicate_op = builder.create<mlir::tf_device::ReplicateOp>( cluster.getLoc(), num_replicas, llvm::SmallDenseMap<llvm::StringRef,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 02 22:03:30 UTC 2024 - 39.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_main_function.cc
// function, which might not exist in case of multi-signature graphs. In that // case, this pass will create a new main function, which calls signature // functions. // // An already existing @main function will be renamed by attaching a numeric // suffix like `@main_0` to avoid conflict with the newly created main function. class InsertMainFunctionPass : public PassWrapper<InsertMainFunctionPass, OperationPass<ModuleOp>> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 16.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
return builder_.create<mlir::tf_executor::SwitchOp>(loc, types, operands, result.attributes); } if (node.IsMerge()) { return builder_.create<mlir::tf_executor::MergeOp>(loc, types, operands, result.attributes); } if (node.IsNextIteration()) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 01 11:17:36 UTC 2024 - 183.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/quantization/tensorflow/tf_to_quant.cc
// Finally, use the quantization parameter to create the quantize and // dequantize ops, and insert them between the tf.FakeQuantWithMinMaxVarsOp // and its users. Value value = tf_op.getOutputs(); auto quantize = rewriter.create<quantfork::QuantizeCastOp>( tf_op.getLoc(), qtype.getValue(), value); auto dequantize = rewriter.create<quantfork::DequantizeCastOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 8.1K bytes - Viewed (0)