Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 1,177 for Invert (0.11 sec)

  1. tensorflow/compiler/mlir/lite/experimental/remat/rematerializer.h

          const bool patch =
              (m.op_index >= remat.insert) && (m.op_index < remat.insert + len);
          // Are we past the insertion portion of the new operation sequence?
          // Then we need to convert indices back to the original sequence.
          const int shift = (m.op_index >= remat.insert + len) ? len : 0;
          m.size += patch ? 0 : operations_[m.op_index - shift].alloc;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 14 20:57:44 UTC 2023
    - 12K bytes
    - Viewed (0)
  2. pilot/pkg/networking/core/envoyfilter/listener_patch.go

    						return true, proto.Clone(lp.Value).(*listener.ListenerFilter)
    					}
    					return false, nil
    				},
    			)
    		} else if lp.Operation == networking.EnvoyFilter_Patch_INSERT_BEFORE {
    			// insert before without a filter match is same as insert in the beginning
    			if !hasListenerFilterMatch(lp) {
    				lis.ListenerFilters = append([]*listener.ListenerFilter{proto.Clone(lp.Value).(*listener.ListenerFilter)}, lis.ListenerFilters...)
    				continue
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 17 15:39:29 UTC 2024
    - 26.7K bytes
    - Viewed (0)
  3. pkg/kubelet/cm/cgroup_manager_linux.go

    	return int64(val), err
    }
    
    // Convert cgroup v1 cpu.shares value to cgroup v2 cpu.weight
    // https://github.com/kubernetes/enhancements/tree/master/keps/sig-node/2254-cgroup-v2#phase-1-convert-from-cgroups-v1-settings-to-v2
    func CpuSharesToCpuWeight(cpuShares uint64) uint64 {
    	return uint64((((cpuShares - 2) * 9999) / 262142) + 1)
    }
    
    // Convert cgroup v2 cpu.weight value to cgroup v1 cpu.shares
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Sep 27 13:02:15 UTC 2023
    - 26.5K bytes
    - Viewed (0)
  4. pkg/apis/core/v1/conversion_test.go

    			t.Errorf("can't convert RC to RS: %v", err)
    			continue
    		}
    		// Round-trip RS before converting back to RC.
    		rs = roundTripRS(t, rs)
    		out := &v1.ReplicationController{}
    		if err := corev1.Convert_apps_ReplicaSet_To_v1_ReplicationController(rs, out, nil); err != nil {
    			t.Errorf("can't convert RS to RC: %v", err)
    			continue
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 10 05:34:15 UTC 2023
    - 21.7K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_stablehlo_to_vhlo.cc

      op->walk([&](Operation *op) {
        if (op->getDialect()->getNamespace() != "vhlo") return;
    
        // Convert operands
        rewriter.modifyOpInPlace(op, [&]() {
          rewriter.setInsertionPoint(op);
          WrapOperandsInUnrealizedCastAndConvert(op, converter, rewriter);
    
          // Convert op types
          for (auto value : op->getResults()) {
            rewriter.setInsertionPointAfter(value.getDefiningOp());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 15 19:48:51 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/transforms/prepare_quantize_dynamic_range.cc

          if (quant_specs_.inference_type == tensorflow::DT_QINT8 &&
              hasInt8QuantizableOperandAt(user, operand_num)) {
            quantizable_ops.insert({user, operand_num});
          } else if (quant_specs_.inference_type == tensorflow::DT_HALF) {
            quantizable_ops.insert({user, operand_num});
          }
        }
        return !quantizable_ops.empty();
      }
    
      // For each filtered user, apply quantization.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 20.8K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/tensorflow/passes/convert_tf_xla_op_to_tf_op.cc

      lhs_batch_idx.insert(dot_dimension_numbers.lhs_batch_dimensions().begin(),
                           dot_dimension_numbers.lhs_batch_dimensions().end());
      lhs_contract_idx.insert(
          dot_dimension_numbers.lhs_contracting_dimensions().begin(),
          dot_dimension_numbers.lhs_contracting_dimensions().end());
      rhs_batch_idx.insert(dot_dimension_numbers.rhs_batch_dimensions().begin(),
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_sequencing.cc

            if (all_in_backwards)
              to_insert.insert(input);
            else
              to_clone.insert(input);
          }
        }
      }
      backward_pass_ops.insert(to_insert.begin(), to_insert.end());
      for (TF::TPUReplicatedInputOp input : to_clone) {
        builder.setInsertionPointAfter(input);
        TF::TPUReplicatedInputOp private_input = input.clone();
        builder.insert(private_input);
        backward_pass_ops.insert(private_input);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 39.4K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/python/mlir.cc

      auto load_status =
          tensorflow::SavedModelV2Bundle::Load(saved_model_path, &bundle);
      if (!load_status.ok()) {
        tsl::Set_TF_Status_from_Status(status, load_status);
        return "// error";
      }
    
      // Convert the SavedModelV2Bundle to an MLIR module.
    
      std::vector<string> exported_names =
          absl::StrSplit(exported_names_str, ',', absl::SkipEmpty());
      mlir::DialectRegistry registry;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Fri May 03 18:16:49 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/region_control_flow_to_functional.cc

      builder.create<func::ReturnOp>(terminator->getLoc(), return_values);
      terminator->erase();
    
      outlined_func.setPrivate();
    
      // Uniquify the function name, and insert into module.
      symbol_table.getSymbolTable(module).insert(outlined_func,
                                                 module.getBody()->begin());
    
      // Add the outlined function to the worklist in case its body has
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 28.7K bytes
    - Viewed (0)
Back to top