- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 44 for tensorlist (0.19 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
namespace { // If the input of TensorListGetItemOp is TensorListFromTensorOp and the // TensorListFromTensorOp is only used by TensorListGetItemOp (not modified by // other TensorList ops), we can convert it to a GatherOp. class ConvertTensorListGetItemOpOfTensorListFromTensorOpToGather : public OpRewritePattern<TensorListGetItemOp> { using OpRewritePattern<TensorListGetItemOp>::OpRewritePattern;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu May 09 22:07:10 UTC 2024 - 170.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/decompose.cc
// Create the new operands. This is mapping the operands from the target // TF ops to the TFR function arguments. If the TFR function argument is // a tensor_list, a "tfr.build_list" op is used to concat the available // TF op operands. If the TFR function argument isn't a tensor/tensor_list, // a constant is created by using the attribute stored in the TF op or the // default value in the argument attribute.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 14.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/translate/import_model.cc
shape_inference::InferenceContext* shape_context = shape_refiner_->GetContext(&node); return shape_ic(shape_context); } // Treat TensorList init ops specially here as the op requires knowing its // element dtype. // TODO(jpienaar): Reconsider post refactoring shape functions. if (node.type_string() == "TensorListReserve" ||
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/tfr/ir/tfr_types.h
}; class TFRTensorListType : public detail::TFRTypeImpl<TFRTensorListType> { public: using TFRBase::TFRBase; static constexpr StringLiteral name = "tfr.tensor_list"; static std::string getTypeName() { return "TFRTensorListType"; } }; class TFRAttrType : public Type::TypeBase<TFRAttrType, TFRType, TypeStorage> { public: using Base::Base;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Dec 05 07:17:01 UTC 2023 - 4.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/passes/raise_to_tf.cc
SmallVector<Value, 4> tensor_list; for (int i = res.index(); i < new_op->getNumResults(); i++) { Value new_res = new_op->getResult(i); auto casted = rewriter.create<CastOp>(loc, unconstrainted_type, new_res); tensor_list.push_back(casted.getOut()); } auto list_op = rewriter.create<BuildListOp>(loc, res_type, tensor_list); new_results.push_back(list_op.getOut());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 21.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfrt/tests/mlrt/while_to_map_fn.mlir
// CHECK: [[tensor_list:%.*]] = "tf.TensorListReserve"([[shape:%.*]], [[reserve_size:%.*]]) { %0 = "tf.TensorListReserve"(%cst_1, %cst_2) {device = "/job:localhost/replica:0/task:0/device:CPU:0"} : (tensor<i32>, tensor<i32>) -> tensor<!tf_type.variant<tensor<*xf32>>> // CHECK: [[map_fn_result:%.*]] = tf_mlrt.tf_map_fn([[reserve_size]], [[tensor_list]], %arg0)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 23 06:40:22 UTC 2024 - 68.6K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/py_function_lib.py
) -> Mapping[str, core.Tensor]: """Converts TensorLike values of `sample` to Tensors. Creates a copy of `sample`, where each value is converted to Tensors unless it is already a Tensor. The values are not converted in-place (i.e. `sample` is not mutated). Args: sample: A representative sample, which is a map of {name -> tensorlike value}. Returns:
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri May 31 05:32:11 UTC 2024 - 27.4K bytes - Viewed (0) -
tensorflow/c/eager/tape.h
const int64_t id = target_tensor_ids[i]; if (output_gradients.empty() || output_gradients[i] == nullptr) { auto tensor_it = tensor_tape.find(id); if (tensor_it != tensor_tape.end() && tensor_it->second != -1) { auto op_it = op_tape.find(tensor_it->second); if (op_it == op_tape.end()) { return errors::Internal( "Internal state of the gradient tape is invalid: "
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Apr 02 12:40:29 UTC 2024 - 47.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset.py
# A representative sample is a map of: input_key -> input_value. # Ex.: {'dense_input': tf.constant([1, 2, 3])} # Ex.: {'x1': np.ndarray([4, 5, 6]} RepresentativeSample = Mapping[str, core.TensorLike] # A representative dataset is an iterable of representative samples. RepresentativeDataset = Iterable[RepresentativeSample] # A type representing a map from: signature key -> representative dataset.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 22 22:55:22 UTC 2024 - 14.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/utils/tf_xla_mlir_translate.cc
output << " input_index=" << xla_output_description.input_index; if (xla_output_description.is_constant) output << " constant"; if (xla_output_description.is_tensor_list) output << " tensor_list"; output << '\n'; } for (const auto& resource_update : compilation_result.resource_updates) { output << "// ResourceUpdate input_index=" << resource_update.input_index
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 18.8K bytes - Viewed (0)