- Sort Score
- Result 10 results
- Languages All
Results 151 - 160 of 182 for created (0.09 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc
if (!wrapped_op) return failure(); OpBuilder builder(parser.getBuilder().getContext()); builder.setInsertionPointToEnd(&block); builder.create<YieldOp>(wrapped_op->getLoc(), wrapped_op->getResults()); result.location = wrapped_op->getLoc(); } else if (parser.parseRegion(body)) { return failure(); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 42.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
return UnrankedTensorType::get(element_type); } // Returns true if the op creates a TensorList. bool IsTensorListInitOp(Operation* op) { return isa<TensorListReserveOp>(op) || isa<EmptyTensorListOp>(op) || isa<TensorListFromTensorOp>(op); } // Returns the `element_shape` operand of the ops that create a TensorList. Value GetElementShapeOperand(Operation* op) {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Jun 08 07:28:49 UTC 2024 - 134.1K 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/tensorflow/transforms/collection_ops_util.cc
if (elem_type && elem_type.hasStaticShape()) return elem_type; } } return std::nullopt; } // Creates a ReadVariableOp on a local variable. Value ReadLocalVariable(Value local_var, OpBuilder builder, Location loc) { return builder .create<TF::ReadVariableOp>( loc, ArrayRef<Type>{mlir::cast<TF::ResourceType>(
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/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/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/quantization/tensorflow/passes/preprocess_op.cc
auto new_shape_const = rewriter.create<arith::ConstantOp>( weight_op->getLoc(), shape_spec_type, new_shape_const_attr); auto reshape_op = rewriter.create<TF::ReshapeOp>( weight_op->getLoc(), new_shape, weight_op->getResult(0), new_shape_const); op->setOperand(weight_operand_idx, reshape_op); // Create a new function with preprocessed types.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 11.4K 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/lite/quantization/tensorflow/fallback_to_flex_ops.cc
TF::Conv2DOp, TF::DepthwiseConv2dNativeOp, TF::Conv2DBackpropInputOp, TF::Conv3DOp, TF::Conv3DBackpropInputV2Op // clang-format on >(op); } // Creates the custom option of the Flex ops. inline void CreateFlexOpCustomOptions(const std::string &op_name, const std::string &node_def_str,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 12.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/utils/lstm_utils.cc
} } // Create a dense constant op for slice's begin auto slice_i2c_begin = CreateI64DenseConst(builder, begin_shape, begin_values, location); // Create a dense constant op for slice's size auto slice_i2c_size = CreateI64DenseConst(builder, size_shape, size_values, location); return builder->create<TF::SliceOp>( location, RankedTensorType::get(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 36.2K bytes - Viewed (0)