- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for shape_shape (0.14 sec)
-
tensorflow/cc/gradients/nn_grad_test.cc
int channel_dim = (channel_first) ? 1 : shape.dims() - 1; TensorShape scale_shape({shape.dim_size(channel_dim)}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(shape)); auto scale = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto offset = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(scale_shape)); auto mean = ops::ZerosLike(scope_, scale); auto var = ops::OnesLike(scope_, scale);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 20:45:22 UTC 2022 - 15K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/einsum.cc
rewriter.getBoolAttr(false)); bool out_reshape_need = (reshape_shape.size() != matmul_shape.size() || original_type.getRank() != matmul_shape.size()); // Always add reshape for concrete output shapes. if (succeeded(VerifyShapeOfReshapeOp(reshape_shape))) { out = createReshapeOp(out, reshape_shape, original_type.getElementType(), op.getLoc(), &rewriter);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 33.3K bytes - Viewed (0) -
tensorflow/compiler/mlir/tfr/ir/tfr_ops.cc
input_vector_type.getElementType(); bool same_shape = output_tensor_type.getShape() == input_vector_type.getShape(); if (!same_element_type || !same_shape) { op.emitError("input and output should have same shape and element type."); } return success(same_element_type && same_shape); } op.emitError("input can not be converted to an output tensor.");
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Nov 21 16:55:41 UTC 2023 - 38.2K bytes - Viewed (0)