Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for checkEqual (0.45 sec)

  1. src/go/printer/printer_test.go

    // lineAt returns the line in text starting at offset offs.
    func lineAt(text []byte, offs int) []byte {
    	i := offs
    	for i < len(text) && text[i] != '\n' {
    		i++
    	}
    	return text[offs:i]
    }
    
    // checkEqual compares a and b.
    func checkEqual(aname, bname string, a, b []byte) error {
    	if bytes.Equal(a, b) {
    		return nil
    	}
    	return errors.New(string(diff.Diff(aname, a, bname, b)))
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 03 14:56:25 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. tensorflow/compiler/aot/codegen.cc

      TF_RETURN_IF_ERROR(GenArgShapeInfos(ps, &arg_shape_infos));
      TF_RETURN_IF_ERROR(
          CheckEqual(ps.parameters_size(), arg_index_table.size(),
                     "Arg number mismatch, proto vs. arg_index_table"));
      TF_RETURN_IF_ERROR(GenResultShapeInfos(ps, &result_shape_infos));
      TF_RETURN_IF_ERROR(
          CheckEqual(ps.result().tuple_shapes_size(), result_index_table.size(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
Back to top