- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 75 for tensor_shape (0.25 sec)
-
tensorflow/compiler/mlir/quantization/stablehlo/passes/bridge/convert_tf_quant_to_mhlo_int_test.cc
#include "xla/pjrt/pjrt_executable.h" #include "xla/shape.h" #include "xla/shape_util.h" #include "xla/tests/literal_test_util.h" #include "tensorflow/core/framework/tensor.h" #include "tensorflow/core/framework/tensor_shape.h" #include "tsl/platform/errors.h" #include "tsl/platform/statusor.h" namespace mlir::quant::stablehlo { namespace { using ::testing::Test; class ConvertTfQuantToMhloIntTest : public Test {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Wed Apr 03 01:03:21 UTC 2024 - 35.8K bytes - Viewed (0) -
tensorflow/compiler/mlir/lite/transforms/legalize_tf.cc
#include "tensorflow/compiler/mlir/tensorflow/utils/mangling_util.h" #include "xla/statusor.h" #include "tensorflow/core/framework/tensor.pb.h" #include "tensorflow/core/framework/tensor_shape.pb.h" #include "tensorflow/core/framework/types.pb.h" #include "tensorflow/core/protobuf/error_codes.pb.h" namespace mlir { namespace TFL {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Mon May 20 20:06:54 UTC 2024 - 45.2K bytes - Viewed (0) -
tensorflow/c/eager/tape.h
result.tensor_usage_counts[it] = 1; if (tensor_tape.find(it) != tensor_tape.end()) { tensor_stack.push_back(it); } } } if (!persistent_tape) { op_tape->erase(op_it); } } for (auto& pair : result.tensor_usage_counts) { auto it = tensor_tape.find(pair.first); if (it != tensor_tape.end() && it->second != -1) {
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/cc/gradients/nn_grad_test.cc
} TEST_F(NNGradTest, L2LossGrad) { TensorShape x_shape({5, 2}); TensorShape y_shape({1}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); auto y = L2Loss(scope_, x); RunTest(x, x_shape, y, y_shape); } TEST_F(NNGradTest, BiasAddGradHelper) { TensorShape shape({4, 5}); TensorShape bias_shape({5});
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 22 20:45:22 UTC 2022 - 15K bytes - Viewed (0) -
tensorflow/cc/gradients/image_grad_test.cc
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Mar 15 04:08:05 UTC 2019 - 12.1K bytes - Viewed (0) -
tensorflow/cc/gradients/array_grad_test.cc
TensorShape y_shape = TensorShape({5, 1}); RunTest({x}, {x_shape}, y.output, {y_shape, y_shape}); } TEST_F(ArrayGradTest, SplitVGrad) { TensorShape x_shape({2, 6}); auto x = Placeholder(scope_, DT_FLOAT, Placeholder::Shape(x_shape)); auto y = SplitV(scope_, x, {1, 2, 3}, /*axis=*/1, /*num_split=*/3); RunTest({x}, {x_shape}, y.output, {TensorShape({2, 1}), TensorShape({2, 2}), TensorShape({2, 3})}); }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Oct 10 23:33:32 UTC 2023 - 19.3K bytes - Viewed (0) -
tensorflow/cc/gradients/math_grad_test.cc
// x.shape = [m, k] x_shape = tx ? TensorShape({k, m}) : TensorShape({m, k}); } shapes->push_back(x_shape); TensorShape y_shape; if (is_y_batch) { // y.shape = [b, k, n] y_shape = ty ? TensorShape({b, n, k}) : TensorShape({b, k, n}); } else { // y.shape = [k, n] y_shape = ty ? TensorShape({n, k}) : TensorShape({k, n}); } shapes->push_back(y_shape);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Fri Aug 25 18:20:20 UTC 2023 - 36K bytes - Viewed (0) -
tensorflow/cc/framework/gradient_checker.cc
const std::vector<TensorShape>& x_shapes, const OutputList& ys, \ const std::vector<TensorShape>& y_shapes, JAC_T* max_error); \ template Status ComputeGradientError<X_T, Y_T, JAC_T>( \ const Scope& scope, const Output& x, const Tensor& x_init_value, \ const Output& y, const TensorShape& y_shape, JAC_T* max_error);
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 18.2K bytes - Viewed (0) -
tensorflow/cc/framework/ops.h
Initializer(const T& v) { // NOLINT(runtime/explicit) typedef typename RealType<T>::type RealT; Tensor t(DataTypeToEnum<RealT>::v(), TensorShape()); t.flat<RealT>()(0) = RealT(v); tensor = t; } Initializer(const Tensor& t) : tensor(t) {} // NOLINT(runtime/explicit) /// Construct from a scalar value and an explicit shape
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Sat Apr 13 05:57:22 UTC 2024 - 10.5K bytes - Viewed (0) -
tensorflow/compiler/jit/device_compiler_test.cc
std::vector<XlaCompiler::Argument> args(2); args[0].kind = XlaCompiler::Argument::kParameter; args[0].type = DT_INT32; args[0].shape = TensorShape({2}); args[1].kind = XlaCompiler::Argument::kParameter; args[1].type = DT_INT32; args[1].shape = TensorShape({2}); return args; } class MockXlaDeviceExecutablePersistor : public DeviceExecutablePersistor<xla::LocalExecutable, xla::LocalClient> {
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 19.8K bytes - Viewed (0)