Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for mutable_func (0.16 sec)

  1. tensorflow/compiler/mlir/tensorflow/utils/export_utils.cc

      SetTensorShapeProto(attr, value->mutable_shape());
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::FlatSymbolRefAttr& attr, AttrValue* value) {
      value->mutable_func()->set_name(attr.getValue().str());
      return absl::OkStatus();
    }
    
    Status ConvertAttribute(const mlir::TF::FuncAttr& attr, bool remove_ref_type,
                            AttrValue* value) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 17 17:58:54 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/translate/export_tf_dialect_op.cc

      if (mlir::isa<mlir::TF::XlaHostComputeOp>(inst) &&
          !inst->hasAttr(kShapeInferenceGraph) &&
          !attrs_to_ignore.contains(kShapeInferenceGraph)) {
        AttrValue value;
        value.mutable_func()->set_name("");
        (*attributes)[kShapeInferenceGraph] = value;
      }
      return absl::OkStatus();
    }
    
    absl::StatusOr<std::unique_ptr<NodeDef>> ConvertTFDialectOpToNodeDef(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/export_graphdef.cc

      for (auto& iter : attrs) {
        auto& attr = iter.second;
        if (attr.has_func()) {
          try_use_original_func_name(attr.mutable_func()->mutable_name());
        } else if (attr.has_list()) {
          for (auto& func_attr : *attr.mutable_list()->mutable_func()) {
            try_use_original_func_name(func_attr.mutable_name());
          }
        }
      }
    }
    
    Status Exporter::AddInstructionNode(Operation* inst) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tf2xla/api/v2/tf_executor_to_graph.cc

      for (auto& iter : attrs) {
        auto& attr = iter.second;
        if (attr.has_func()) {
          try_use_original_func_name(attr.mutable_func()->mutable_name());
        } else if (attr.has_list()) {
          for (auto& func_attr : *attr.mutable_list()->mutable_func()) {
            try_use_original_func_name(func_attr.mutable_name());
          }
        }
      }
    }
    
    Status Exporter::AddInstructionNode(Operation* inst) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Jun 06 23:04:51 UTC 2024
    - 35.2K bytes
    - Viewed (0)
  5. src/sort/slice.go

    // Note: in many situations, the newer [slices.SortStableFunc] function is more
    // ergonomic and runs faster.
    func SliceStable(x any, less func(i, j int) bool) {
    	rv := reflectlite.ValueOf(x)
    	swap := reflectlite.Swapper(x)
    	stable_func(lessSwap{less, swap}, rv.Len())
    }
    
    // SliceIsSorted reports whether the slice x is sorted according to the provided less function.
    // It panics if x is not a slice.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 16:40:32 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  6. src/sort/zsortfunc.go

    	j := b - 1
    	for i < j {
    		data.Swap(i, j)
    		i++
    		j--
    	}
    }
    
    func swapRange_func(data lessSwap, a, b, n int) {
    	for i := 0; i < n; i++ {
    		data.Swap(a+i, b+i)
    	}
    }
    
    func stable_func(data lessSwap, n int) {
    	blockSize := 20 // must be > 0
    	a, b := 0, blockSize
    	for b <= n {
    		insertionSort_func(data, a, b)
    		a = b
    		b += blockSize
    	}
    	insertionSort_func(data, a, n)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 13 20:16:24 UTC 2022
    - 11.5K bytes
    - Viewed (0)
Back to top