Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 13 for as_str (0.31 sec)

  1. tensorflow/compiler/mlir/tfr/python/tfr_gen.py

                                          loc.loc.col_offset)
        else:
          return 'loc(unknown)'
    
      def _emit_with_loc(self, op_str, node=None):
        """Emit the mlir operation with the location associated with the node.
    
        Args:
          op_str: The mlir operation string to be emitted.
          node: The node of the AST tree, the mlir operation translated from.
        """
        loc = ''
        if node:
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Apr 27 15:27:03 UTC 2022
    - 55.8K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/tests/convert_control_to_data_outputs.mlir

        // CHECK: [[exe:%.*]] = tf_executor.island({{.*}}) wraps "tf.TPUExecuteAndUpdateVariables"
        %exe_control = tf_executor.island wraps "tf.TPUExecuteAndUpdateVariables"(%arg0, %arg0, %key) {
            device_var_reads_indices = [0, 1],
            device_var_updates_indices = [0, 1],
            device = "task:0"
        } : (!tf_res, !tf_res, !tf_str) -> ()
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Feb 22 18:35:00 UTC 2024
    - 68.9K bytes
    - Viewed (0)
  3. tensorflow/c/eager/c_api_test.cc

            TFE_TensorHandleCopyToDevice(hcpu, ctx, name.c_str(), status.get());
        if (TF_GetCode(status.get()) != TF_OK) {
          ADD_FAILURE() << tag << " -- " << TF_Message(status.get());
          continue;
        }
        // Copy from device to the same device.
        TFE_TensorHandle* hdevice2 =
            TFE_TensorHandleCopyToDevice(hdevice, ctx, name.c_str(), status.get());
        if (TF_GetCode(status.get()) != TF_OK) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Aug 03 20:50:20 UTC 2023
    - 94.6K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/gtest.h

      const char* test_case_name() const { return test_case_name_.c_str(); }
    
      // Returns the test name.
      const char* name() const { return name_.c_str(); }
    
      // Returns the name of the parameter type, or NULL if this is not a typed
      // or a type-parameterized test.
      const char* type_param() const {
        if (type_param_.get() != NULL)
          return type_param_->c_str();
        return NULL;
      }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 86.4K bytes
    - Viewed (0)
  5. tensorflow/c/c_api_test.cc

          type = type.replace(0, 5, "");
          type = type.replace(type.size() - 1, 1, "");
        }
        op_name += type;
        return TF_NewOperation(
            graph_, op_name.c_str(),
            ::tensorflow::strings::StrCat("name", counter_++).c_str());
      }
    
      TF_Status* s_;
    
     private:
      TF_Graph* graph_;
      int counter_;
    };
    
    // Helper macros for the TF_OperationGetAttr* tests.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 15 03:35:10 UTC 2024
    - 96.9K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

      static bool FullMatch(const ::std::string& str, const RE& re) {
        return FullMatch(str.c_str(), re);
      }
      static bool PartialMatch(const ::std::string& str, const RE& re) {
        return PartialMatch(str.c_str(), re);
      }
    
    #if GTEST_HAS_GLOBAL_STRING
    
      static bool FullMatch(const ::string& str, const RE& re) {
        return FullMatch(str.c_str(), re);
      }
      static bool PartialMatch(const ::string& str, const RE& re) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 67.2K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-port.h

      static bool FullMatch(const ::std::string& str, const RE& re) {
        return FullMatch(str.c_str(), re);
      }
      static bool PartialMatch(const ::std::string& str, const RE& re) {
        return PartialMatch(str.c_str(), re);
      }
    
    #if GTEST_HAS_GLOBAL_STRING
    
      static bool FullMatch(const ::string& str, const RE& re) {
        return FullMatch(str.c_str(), re);
      }
      static bool PartialMatch(const ::string& str, const RE& re) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 67.2K bytes
    - Viewed (0)
  8. cmd/iam.go

    func (sys *IAMSys) GetRolePolicy(arnStr string) (arn.ARN, string, error) {
    	roleArn, err := arn.Parse(arnStr)
    	if err != nil {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN parse err: %v", err)
    	}
    	rolePolicy, ok := sys.rolesMap[roleArn]
    	if !ok {
    		return arn.ARN{}, "", fmt.Errorf("RoleARN %s is not defined.", arnStr)
    	}
    	return roleArn, rolePolicy, nil
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu Jun 13 22:26:38 UTC 2024
    - 71.9K bytes
    - Viewed (0)
  9. src/go/build/build.go

    		// #cgo (nocallback|noescape) <function name>
    		if fields := strings.Fields(line); len(fields) == 3 && (fields[1] == "nocallback" || fields[1] == "noescape") {
    			continue
    		}
    
    		// Split at colon.
    		line, argstr, ok := strings.Cut(strings.TrimSpace(line[4:]), ":")
    		if !ok {
    			return fmt.Errorf("%s: invalid #cgo line: %s", filename, orig)
    		}
    
    		// Parse GOOS/GOARCH stuff.
    		f := strings.Fields(line)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 62.3K bytes
    - Viewed (0)
  10. tensorflow/c/c_api_function_test.cc

        const char** ptr = nullptr;
        if (!strs.empty()) {
          ptr = new const char*[strs.size()];
          for (size_t i = 0; i < strs.size(); ++i) {
            ptr[i] = strs[i].c_str();
          }
        }
        return ptr;
      }
    
      // An explicit `num_opers` is needed so that we can distinguish between the
      // case of no operations specified (-1) and the case of an empty set of
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jul 20 22:08:54 UTC 2023
    - 63.6K bytes
    - Viewed (0)
Back to top