Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for INVALID_ARGUMENT (0.2 sec)

  1. tensorflow/cc/ops/while_loop_test.cc

      CreateLoop(
          [](const Scope& s, const std::vector<Output>& inputs, Output* output) {
            *output = ops::Placeholder(s, DT_FLOAT);
            return s.status();
          },
          AddOneBody, error::INVALID_ARGUMENT,
          "BuildWhileLoop: 'cond' argument must return a boolean output, got "
          "float");
    }
    
    // TODO(skyewm): test bad cond output shape
    
    TEST_F(WhileLoopTest, NullCondOutputNode) {
      Init(1);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 13 22:30:58 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/jit/device_compilation_cache_test.cc

                   std::nullopt, std::nullopt);
      cache_value = cache->Lookup(key);
    
      EXPECT_EQ(cache_value->compile_state, DeviceCompileState::kCompiled);
      EXPECT_EQ(cache_value->compilation_status.code(), error::INVALID_ARGUMENT);
      EXPECT_TRUE(cache_value->compilation_result == nullptr);
      EXPECT_TRUE(cache_value->executable == nullptr);
    
      cache->Store(key, std::nullopt, std::nullopt, std::move(compilation_result),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 8.6K bytes
    - Viewed (0)
  3. tensorflow/c/kernels/summary_op_test.cc

      tags.matrix<tstring>()(1, 0) = "tag2";
      values.vec<float>()(0) = 1.0f;
      values.vec<float>()(1) = -2.0f;
      TestScalarSummaryOp(&tags, &values, "tags and values are not the same shape",
                          error::INVALID_ARGUMENT);
    }
    
    TEST(ScalarSummaryOpTest, Error_WrongValuesTags) {
      Tensor tags(DT_STRING, {2});
      Tensor values(DT_FLOAT, {2, 1});
      tags.vec<tstring>()(0) = "tag1";
      tags.vec<tstring>()(1) = "tag2";
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 6.7K bytes
    - Viewed (0)
  4. tensorflow/c/tf_status_helper_test.cc

      absl::Status another_cc_status(StatusFromTF_Status(s));
      ASSERT_FALSE(another_cc_status.ok());
      ASSERT_EQ(std::string("some error"), another_cc_status.message());
      ASSERT_EQ(error::INVALID_ARGUMENT, another_cc_status.code());
      // Ensure the payloads are not lost during conversions
      ASSERT_EQ(cc_status.GetPayload("key1"), another_cc_status.GetPayload("key1"));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 21:57:32 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. pkg/util/grpc/codes.go

    var SupportedGRPCStatus = map[string]codes.Code{
    	"OK":                  codes.OK,
    	"CANCELLED":           codes.Canceled,
    	"UNKNOWN":             codes.Unknown,
    	"INVALID_ARGUMENT":    codes.InvalidArgument,
    	"DEADLINE_EXCEEDED":   codes.DeadlineExceeded,
    	"NOT_FOUND":           codes.NotFound,
    	"ALREADY_EXISTS":      codes.AlreadyExists,
    	"PERMISSION_DENIED":   codes.PermissionDenied,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 06 16:50:02 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/device_executable_persistor_test.cc

          persistor.TryToPersistExecutable(
              /*signature_hash=*/123, "signature_string", DefaultXlaOptions(),
              compilation_result_add_, *executable, &mock_client),
          testing::StatusIs(error::INVALID_ARGUMENT));
    }
    
    TEST_F(DeviceExecutionPersistorTest, PersistExecutableEmpty) {
      XlaDeviceExecutablePersistor::Config config(
          /*persistent_cache_directory=*/cache_dir_,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 25.9K bytes
    - Viewed (0)
  7. tensorflow/c/kernels/bitcast_op_test.cc

      TestBitcastOp(&int32_input, DT_UINT8, TensorShape({4, 6, 4}), error::OK);
    }
    
    TEST(BitcastOpTest, TestImpossibleCast) {
      Tensor int8_input(DT_UINT8, {1});
      TestBitcastOp(&int8_input, DT_UINT32, TensorShape(), error::INVALID_ARGUMENT);
    }
    
    PartialTensorShape S(std::initializer_list<int64_t> dims) {
      return PartialTensorShape(dims);
    }
    
    TEST(BitcastOpTest, TestShapeInference_LargerShape) {
      const OpRegistrationData* reg;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Jul 18 15:10:51 UTC 2022
    - 5.5K bytes
    - Viewed (0)
  8. tensorflow/c/eager/gradients_test.cc

      Status s = RunModel(RecordOperationWithNullGradientFunctionModel, ctx.get(),
                          {x.get()}, absl::MakeSpan(outputs),
                          /*use_function=*/!std::get<2>(GetParam()));
      ASSERT_EQ(error::INVALID_ARGUMENT, s.code());
      ASSERT_EQ(
          "Provided null gradient_function for 'Neg'.\nIf the intent is to treat "
          "this op as non-differentiable consider using RegisterNotDifferentiable "
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 15 09:49:45 UTC 2024
    - 7K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tf2xla/tests/legalize-tf-prefer-tf2xla.mlir

      // CHECK: %0 = mhlo.constant dense<[32, 12, 12, 64]> : tensor<4xi32>
      // CHECK-NEXT: %1 = "tf.RandomUniform"(%0) : (tensor<4xi32>) -> tensor<32x12x12x64xf32>
      // expected-remark@+1 {{failed to create tf2xla kernel: INVALID_ARGUMENT: NodeDef missing attrs 'seed2', 'seed' from}}
      %cst = "tf.Const"() {value = dense<[32, 12, 12, 64]> : tensor<4xi32>} : () -> tensor<4xi32>
      %0 = "tf.RandomUniform"(%cst) {} : (tensor<4xi32>) -> tensor<32x12x12x64xf32>
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 06 15:32:52 UTC 2024
    - 15.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/jit/build_xla_ops_pass_test.cc

      std::unique_ptr<Graph> graph;
      Status failure_status = BuildXlaOps(root, fdef_lib, &graph);
      ASSERT_FALSE(failure_status.ok());
      EXPECT_EQ(failure_status.code(), error::INVALID_ARGUMENT);
    }
    
    TEST_F(BuildXlaOpsTest, OnNonXlaDevice) {
      Scope root = Scope::NewRootScope().ExitOnError();
    
      FunctionDefLibrary fdef_lib =
          CreateFunctionDefLibWithConstFunction("cluster_0");
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 08:47:20 UTC 2024
    - 12.2K bytes
    - Viewed (0)
Back to top