- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for tensor_key (0.17 sec)
-
tensorflow/compiler/mlir/quantization/tensorflow/python/representative_dataset_test.py
] repr_ds: repr_dataset.RepresentativeDataset = [ { 'tensor_key': ops.convert_to_tensor(sample), } for sample in samples ] # Extend the representative dataset with np.ndarrays. repr_ds.extend([ {'tensor_key': np.random.uniform(low=-1.0, high=1.0, size=(3, 3))} for _ in range(4) ]) random.shuffle(repr_ds)
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Jan 04 07:35:19 UTC 2024 - 11.6K bytes - Viewed (0) -
tensorflow/c/eager/dlpack.cc
auto tf_dlm_type = GetDlDataType(data_type, status); if (!status->status.ok()) { return nullptr; } TensorReference tensor_ref(*tensor); // This will call buf_->Ref() auto* tf_dlm_tensor_ctx = new TfDlManagedTensorCtx(tensor_ref); tf_dlm_tensor_ctx->reference = tensor_ref; DLManagedTensor* dlm_tensor = &tf_dlm_tensor_ctx->tensor; dlm_tensor->manager_ctx = tf_dlm_tensor_ctx;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Feb 15 09:49:45 UTC 2024 - 12.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc
auto output_ty = op.getType().dyn_cast<RankedTensorType>(); if (!output_ty) return success(); auto tensor_ty = op.getTensor().getType().cast<TensorType>(); if (output_ty.hasStaticShape() && tensor_ty.hasStaticShape()) { const int64_t output_ty_size = output_ty.getNumElements(); const int64_t tensor_ty_size = tensor_ty.getNumElements(); if (tensor_ty_size != output_ty_size)
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/ir/tfr_ops.cc
llvm::ArrayRef<StringAttr> attrs; if (type.isa<TFRAttrType>()) { os << "attr"; return; } if (auto tensor_ty = type.dyn_cast<TFRTensorType>()) { attrs = tensor_ty.getAttrKeys(); os << "tensor"; } else if (auto tensor_list_ty = type.dyn_cast<TFRTensorListType>()) { attrs = tensor_list_ty.getAttrKeys(); os << "tensor_list"; } else {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tf2xla/transforms/legalize_tf.cc
PatternRewriter &rewriter) const override { auto tensor_ty = mlir::dyn_cast<RankedTensorType>(op.getTensor().getType()); auto indices_ty = mlir::dyn_cast<RankedTensorType>(op.getIndices().getType()); auto updates_ty = mlir::dyn_cast<RankedTensorType>(op.getUpdates().getType()); if (!tensor_ty || !indices_ty || !updates_ty) return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jun 11 20:00:43 UTC 2024 - 291.8K bytes - Viewed (0)