- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for out_shape (0.18 sec)
-
tensorflow/compiler/mlir/tensorflow/ir/tf_ops_tensor_helper.cc
ArrayRef<int64_t> shape = ranked_ty.getShape(); SmallVector<int64_t, 4> out_shape; out_shape.reserve(rank - (keep_dims.getValue() ? 0 : num_reduce_dim)); for (int64_t i = 0; i < rank; ++i) { if (!is_reduce_dim[i]) out_shape.push_back(shape[i]); else if (keep_dims.getValue()) out_shape.push_back(1); } return RankedTensorType::get(out_shape, element_ty); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.7K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/tests/tf_to_hlo_pipeline/sccp-post-shape-inference.mlir
%2 = "tf.PartitionedCall"(%1) {config = "", config_proto = "", executor_type = "", f = @get_shape} : (tensor<?x?xf32>) -> (tensor<?xi64>) // CHECK: return %[[RESULT]] func.return %2 : tensor<?xi64> } // CHECK-LABEL: func @get_shape func.func @get_shape(%arg0 : tensor<*xi64>) -> tensor<?xi64> { %0 = "tf.Shape"(%arg0) : (tensor<*xi64>) -> tensor<?xi64>
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Jul 25 02:54:34 UTC 2023 - 1020 bytes - Viewed (0) -
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.h
// // Slice(op, begin, size <must be constant>) => // Slice(op, begin, actual_size(op.shape(), size, begin)); // _XlaCompileTimeConstantInputs={2} // // where // // actual_size(op_shape, size, begin)[i] = // size[i] == -1 ? (op_shape[i] - size[i]) // : size[i] // // This pass, combined with jit/partially_decluster_pass, reduces the number of
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Oct 26 21:01:34 UTC 2018 - 2.2K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/transforms/set_tpu_infeed_layout.cc
// TODO(kramm): Move this into a separate pass. See b/184944903 xla::Shape old_shape = xla::TypeToShape(t); XLA_Shape old_shape_c = {}; XLA_Shape new_shape_c = {}; TfTpu_ExecutorApiFn *executor = stream_executor::tpu::ExecutorApiFn(); if (!stream_executor::tpu::IsInitialized(executor)) { return failure(); } ApiConverter::ToC(old_shape, &old_shape_c);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Thu Apr 25 16:01:03 UTC 2024 - 6.1K bytes - Viewed (0) -
tensorflow/compiler/mlir/tensorflow/g3doc/space_to_depth.md
kernel_initializer=tf.variance_scaling_initializer(), data_format=data_format) # Use the image size without space-to-depth transform as the input of conv0. batch_size, h, w, channel = inputs.get_shape().as_list() conv0.build([ batch_size, h * space_to_depth_block_size, w * space_to_depth_block_size, channel // (space_to_depth_block_size**2) ]) kernel = conv0.weights[0]
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Oct 24 02:51:43 UTC 2020 - 8.3K bytes - Viewed (0)