- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 1,512 for q_builder (0.25 sec)
-
tensorflow/compiler/mlir/tfrt/ir/tfrt_fallback.td
} // This corresponds to tensorflow::Tensor. def TFTensorType : DialectType<Fallback_Dialect, CPred<"$_self.isa<::tfrt::fallback::TFTensorType>()">, "!tfrt_fallback.tf_tensor type">, BuildableType<"$_builder.getType<::tfrt::fallback::TFTensorType>()"> { let description = [{ `!tfrt_fallback.tf_tensor type` represents a tensorflow::Tensor. }]; } // This corresponds to tensorflow::Allocator.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 18 15:01:21 UTC 2024 - 1.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/functional_control_flow_to_cfg.cc
}; // Lowers a general tensor argument that is used as a condition to a functional // control flow op into an i1 value. static Value LowerCondition(Location loc, Value value, OpBuilder* builder) { Value zero_d = builder->create<ToBoolOp>(loc, value); Value scalar = builder->create<tensor::ExtractOp>(loc, zero_d); return scalar; } // Calls the function `fn` with arguments provided by the given function and
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Jan 13 11:42:59 UTC 2023 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/insert_restore_op.cc
OpBuilder& builder) { const auto filename_op_type = RankedTensorType::get( /*shape=*/{}, /*elementType=*/builder.getType<TF::StringType>()); const auto file_prefix_attr = builder.getStringAttr(kTfFilePrefix); const auto arg_attrs = builder.getDictionaryAttr({builder.getNamedAttr( kTfSavedModelIndexPathAttr, builder.getArrayAttr({file_prefix_attr}))});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Mar 12 06:02:20 UTC 2023 - 9K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/unfold_splat_constant_pass.cc
auto module = getOperation(); mlir::OpBuilder op_builder(&module.getBodyRegion()); // Cannot use the pattern rewriter because the driver applies folders by // default. module.walk([&](mhlo::ConstantOp const_op) { UnfoldSplatConstant(&op_builder, const_op); }); } private: void UnfoldSplatConstant(mlir::OpBuilder* op_builder, mhlo::ConstantOp const_op) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 3.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/unfold_large_splat_constant.cc
void runOnOperation() override { auto module = getOperation(); mlir::OpBuilder op_builder(&module.getBodyRegion()); module.walk([&](mlir::arith::ConstantOp const_op) { MaybeUnfoldLargeSplatConstant(&op_builder, const_op); }); } private: void MaybeUnfoldLargeSplatConstant(mlir::OpBuilder* op_builder, mlir::arith::ConstantOp const_op) const {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 4.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
GetIndicesForElement(index, buffer, builder, loc)}) .getOutput(); } TensorType GetSizeType(OpBuilder builder) { return tensorflow::GetTypeFromTFTensorShape({1}, builder.getIntegerType(32)); } Value ReshapeScalarToSizeType(OpBuilder builder, Value scalar, Location loc) { auto size_type = GetSizeType(builder); return builder.create<TF::ReshapeOp>( loc, ArrayRef<Type>{size_type},
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/utils.h
auto reducer = builder->create<Op>(loc, block->getArgument(0), block->getArgument(1)); builder->create<ReturnOp>(loc, reducer.getResult()); } ConstantOp GetScalarConstOfType(Type ty, Location loc, int64_t raw_value, OpBuilder* builder); ConstantOp GetScalarNegZeroOfType(Type ty, Location loc, OpBuilder* builder);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Sep 06 19:12:29 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.td
def IsPrecisionEmpty : Constraint<CPred<"IsPrecisionEmpty($0)">>; // Creates Einsum Op from XlaDotV2 Op by generating equation. def CreateEinsumOpFromXlaDotV2Op : NativeCodeCall< "CreateEinsumOpFromXlaDotV2Op($_builder, $_loc, $0...)">; // Convert XlaDotV2 Op to Einsum Op with above two functions. def ConvertXlaDotV2OpToEinsumOp : Pat< (TF_XlaDotV2Op:$dot $lhs, $rhs, $dot_dimension_numbers, $precision_config),
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Dec 10 05:52:02 UTC 2023 - 2.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/tensor_array_ops_decomposition.cc
return read.emitOpError("unknown tensor array"); } OpBuilder builder(read); auto buffer = cutil::ReadLocalVariable(local_var, builder, read.getLoc()); auto index_reshape = cutil::ReshapeScalarToSizeType(builder, read.getIndex(), read.getLoc()); auto elem = cutil::GetElement(index_reshape, buffer, builder, read.getLoc()); ReplaceAllUsesExceptTerminator(read.getValue(), elem);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Mar 02 20:41:19 UTC 2023 - 40.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/tfxla_device_specific_transforms.cc
tensorflow::DefaultRngAlgForDeviceType(device_type_); tensorflow::Algorithm tensorflow_rng = tensorflow::ToTensorflowAlgorithm(xla_rng); OpBuilder opbuilder(get_alg_op); auto tf_const = opbuilder.create<TF::ConstOp>( get_alg_op->getLoc(), opbuilder.getI32IntegerAttr((int)tensorflow_rng)); get_alg_op->replaceAllUsesWith(tf_const); get_alg_op->erase(); return success(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 03 05:56:39 UTC 2023 - 3.1K bytes - Viewed (0)