Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 2,092 for expectGet (0.14 sec)

  1. tensorflow/compiler/jit/mark_for_compilation_pass_test.cc

      EXPECT_NE(clusters["some_ctrl_input"], "");
      EXPECT_EQ(clusters["some_ctrl_input"], clusters["weights_0_update"]);
      EXPECT_EQ(clusters["some_ctrl_input"], clusters["weights_1_update"]);
      EXPECT_EQ(clusters["some_ctrl_input"], clusters["matmul_0"]);
      EXPECT_EQ(clusters["some_ctrl_input"], clusters["matmul_0"]);
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Feb 14 10:11:10 UTC 2024
    - 79.6K bytes
    - Viewed (0)
  2. tensorflow/c/experimental/saved_model/core/saved_variable_loading_test.cc

      saved_variable.set_dtype(dtype);
      shape.AsProto(saved_variable.mutable_shape());
    
      std::unique_ptr<Variable> var;
      TF_EXPECT_OK(internal::LoadSavedVariable(context(), saved_variable, &var));
      EXPECT_EQ(var->dtype(), dtype);
      EXPECT_EQ(var->shape(), shape);
    }
    
    // Verify that a device specified in the SavedVariable is kept.
    TEST_P(SavedVariableLoadingTest, LoadSavedVariableWithDevice) {
      auto& test_params = GetParam();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Feb 27 09:34:33 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  3. tensorflow/c/while_loop_test.cc

      }
    
      void ExpectOK() {
        TF_FinishWhile(params_.get(), s_, &outputs_[0]);
        EXPECT_EQ(TF_OK, TF_GetCode(s_)) << TF_Message(s_);
      }
    
      void ExpectError(TF_Code expected_code, const string& expected_msg) {
        TF_FinishWhile(params_.get(), s_, &outputs_[0]);
        EXPECT_EQ(expected_code, TF_GetCode(s_));
        EXPECT_EQ(expected_msg, TF_Message(s_));
        // TODO(skyewm): this assert is currently broken. Fix or remove guarantee.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 11 06:05:56 UTC 2024
    - 15.3K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/internal/legalize_tf_to_hlo_test.cc

      CellReader<int64_t> counts(kBridgeStatusCounter);
    
      auto result = CompileMlirModule(kMlirModuleStr);
    
      ASSERT_THAT(result, IsOkOrFiltered());
      EXPECT_EQ(mlir_bridge_legalize_count.Delta("tf.Acos"), 0);
      EXPECT_THAT(result,
                  IncrementedOrFiltered(counts.Delta(kMlirCombinedMlirSuccess), 1));
      EXPECT_THAT(result,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sun Apr 14 20:29:34 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tf2xla/transforms/xla_legalize_tf_test.cc

          "/tensorflow/core/tf2xla/v1/mlir_failed_xla_legalize_tf_pass_count");
    
      auto status = BuildAndRunPipeline(kMlirIllegalOpStr, legalizeTFPasses());
    
      EXPECT_TRUE(status);
      EXPECT_EQ(legalize_failure_count.Read("tf.DoesntExist", "Unknown"), 1);
    }
    
    TEST(XlaLegalizeTest, LegalOp) {
      // We expect legalization to fail for legal op with dynamic shapes:
      static constexpr char kMlirLegalOpStr[] = R"(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:16:07 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. tensorflow/compiler/jit/node_matchers_test.cc

      EXPECT_EQ(Explain(add.node(), NodeWith(Inputs())),
                "\nexpected 0 inputs but node has 2");
      EXPECT_EQ(
          Explain(add.node(), NodeWith(Inputs(Out(NodeWith(Name("blah"))), _))),
          "\ninput 0 does not match expected:\nname: blah, \nsource does not match "
          "expected name: blah\n\t\nexpected name blah but found placeholder_a");
      EXPECT_EQ(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon May 20 14:43:57 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/ops/gen/common/case_format_test.cc

      string upper_snake;
    };
    
    void TestSingleVariation(const string &str, Variations expected,
                             char delimiter = '_') {
      EXPECT_EQ(expected.lower_camel, toLowerCamel(str, delimiter));
      EXPECT_EQ(expected.lower_snake, toLowerSnake(str, delimiter));
      EXPECT_EQ(expected.upper_camel, toUpperCamel(str, delimiter));
      EXPECT_EQ(expected.upper_snake, toUpperSnake(str, delimiter));
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 09:51:28 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiextensions-apiserver/pkg/apis/apiextensions/v1/conversion_test.go

    				}
    				if !strings.Contains(err.Error(), tc.ExpectErr) {
    					t.Fatalf("expected error %s, got %v", tc.ExpectErr, err)
    				}
    				return
    			}
    			if len(tc.ExpectErr) > 0 {
    				t.Fatalf("expected error %s, got none", tc.ExpectErr)
    			}
    			if !reflect.DeepEqual(tc.Out, tc.ExpectOut) {
    				t.Fatalf("unexpected result:\n %s", cmp.Diff(tc.ExpectOut, tc.Out))
    			}
    		})
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 28 19:06:46 UTC 2024
    - 29.2K bytes
    - Viewed (0)
  9. pilot/pkg/leaderelection/leaderelection_test.go

    	expectInt(t, completions.Load, 2)
    
    	close(stop)
    }
    
    func expectInt(t *testing.T, f func() int32, expected int32) {
    	t.Helper()
    	retry.UntilSuccessOrFail(t, func() error {
    		got := f()
    		if got != expected {
    			return fmt.Errorf("unexpected count: %v, want %v", got, expected)
    		}
    		return nil
    	}, retry.Timeout(time.Second))
    }
    
    func TestLeaderElectionDisabled(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Apr 28 04:22:19 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  10. tensorflow/cc/experimental/base/tests/tensorhandle_test.cc

      EXPECT_EQ(tensor.dims(), 1);
      EXPECT_EQ(tensor.dtype(), dtype);
      absl::Span<const typename TypeParam::type> tensor_view(
          reinterpret_cast<typename TypeParam::type*>(tensor.data()), value.size());
      EXPECT_EQ(tensor_view[0], 42);
      EXPECT_EQ(tensor_view[1], 100);
      EXPECT_EQ(tensor_view[2], 0);
      EXPECT_EQ(tensor_view[3], 1);
      EXPECT_EQ(tensor_view[4], 4);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Apr 13 09:56:08 UTC 2024
    - 6.9K bytes
    - Viewed (0)
Back to top