- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 128 for get_shape (0.16 sec)
-
tensorflow/compiler/mlir/quantization/common/quantization_lib/quantization_utils.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 43.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc
} for (auto idx = 0; idx < output_type.getShape().size(); idx++) { if (input_type.getShape()[idx] != output_type.getShape()[idx]) { op.emitOpError() << "the " << idx << "th dim of output tensor is " << output_type.getShape()[idx] << ". It is not equal to the one in input tensor, which is " << input_type.getShape()[idx]; return failure();
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 146.7K bytes - Viewed (0) -
tensorflow/c/tf_tensor.cc
} void* TensorInterface::Data() const { return tensorflow::TensorCApi::Buffer(tensor_)->data(); } void TensorInterface::SetShape(const int64_t* dims, int num_dims) { tensorflow::TensorShape s; for (int i = 0; i < num_dims; ++i) { s.AddDim(dims[i]); } tensor_.set_shape(s); } Status TensorInterface::BitcastFrom(const TensorInterface& from, DataType type,
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sun Apr 14 21:57:32 UTC 2024 - 11.5K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc
const auto [input_height, input_width] = GetDimSize(op->getOperand(0).getType().cast<ShapedType>().getShape(), dimension_numbers.getInputSpatialDimensions()); const auto [output_height, output_width] = GetDimSize(op->getResult(0).getType().cast<ShapedType>().getShape(), dimension_numbers.getOutputSpatialDimensions());
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon Apr 22 09:00:19 UTC 2024 - 99.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/lower_tf.cc
if (!input_ty.hasRank() || input_ty.getRank() != 4) { return failure(); } int64_t batch_cst = input_ty.getShape()[0]; int64_t channels_cst = input_ty.getShape()[3]; int64_t in_y_cst = input_ty.getShape()[1]; int64_t in_x_cst = input_ty.getShape()[2]; int64_t in_spatial_cst = in_y_cst < 0 || in_x_cst < 0 ? -1 : in_y_cst * in_x_cst;
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 74.9K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc
Location loc) { auto buffer_type = mlir::cast<RankedTensorType>(buffer.getType()); if (buffer_type.getShape().size() == 1) return index; // Create a concat of index and trailing zeros. llvm::SmallVector<int64_t, 8> zeros(buffer_type.getShape().size() - 1, 0); auto zeros_tensor = GetR1Const(zeros, builder, loc); return builder.create<TF::ConcatV2Op>( loc,
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/quantization/common/ir/UniformSupport.cc
if (auto tensor_type = dyn_cast<RankedTensorType>(input_type)) return RankedTensorType::get(tensor_type.getShape(), elemental_type); if (auto tensor_type = dyn_cast<UnrankedTensorType>(input_type)) return UnrankedTensorType::get(elemental_type); if (auto vector_type = dyn_cast<VectorType>(input_type)) return VectorType::get(vector_type.getShape(), elemental_type); // If the expressed types match, just use the new elemental type.
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed May 08 02:10:16 UTC 2024 - 4.3K bytes - Viewed (0) -
src/test/java/jcifs/tests/FileLocationTest.java
public String getLink () { return null; } /** * {@inheritDoc} * * @see jcifs.DfsReferralData#getShare() */ @Override public String getShare () { return this.share; } /** * {@inheritDoc} * * @see jcifs.DfsReferralData#getPathConsumed()
Registered: Wed Jun 12 15:45:55 UTC 2024 - Last Modified: Wed Jan 08 13:16:07 UTC 2020 - 23K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc
SmallVector<int64_t> new_shape(shape.begin(), shape.end()); // If dimension of the input type is dynamic. Update the // bounds of the dim with the new type if needed. for (int i = 0; i < input_ty.getShape().size(); i++) { if (hlo::isDynamicDimSize(input_ty.getShape()[i])) { new_bounds[i] = new_shape[i]; new_shape[i] = ShapedType::kDynamic; } }
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/compiler/mlir/lite/stablehlo/transforms/optimize.cc
// Extract Z from %dot. ArrayRef<int64_t> shape_z = dot.getType().getShape().drop_front(shape_b.size() + shape_y2.size()); // Check %after shape. if (reshape_after.getType().getShape() != ArrayRef<int64_t>(llvm::to_vector( llvm::concat<const int64_t>(shape_b, shape_y1, shape_z)))) { return failure(); } rewriter.replaceOpWithNewOp<mhlo::DotGeneralOp>(
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 26.9K bytes - Viewed (0)