Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for pushBack (0.15 sec)

  1. src/runtime/proc.go

    }
    
    // push adds gp to the head of q.
    func (q *gQueue) push(gp *g) {
    	gp.schedlink = q.head
    	q.head.set(gp)
    	if q.tail == 0 {
    		q.tail.set(gp)
    	}
    }
    
    // pushBack adds gp to the tail of q.
    func (q *gQueue) pushBack(gp *g) {
    	gp.schedlink = 0
    	if q.tail != 0 {
    		q.tail.ptr().schedlink.set(gp)
    	} else {
    		q.head.set(gp)
    	}
    	q.tail.set(gp)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 207.5K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/lite/stablehlo/transforms/legalize_hlo.cc

            padding = "SAME";
          } else {
            padding = "EXPLICIT";
            explicit_padding.push_back(0);
            explicit_padding.push_back(0);
            explicit_padding.append(padding_array);
            explicit_padding.push_back(0);
            explicit_padding.push_back(0);
          }
        }
    
        CreateConvOp(conv_op, strides, padding, explicit_padding, dilation,
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 154.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/translate/import_model.cc

      for (int input = 0, e = num_operands + 1; input != e; ++input) {
        if (input < dst_input) {
          state.operands.push_back(dst->getOperand(input));
        } else if (input == dst_input) {
          state.operands.push_back(source->getResult(0));
        } else {
          state.operands.push_back(dst->getOperand(input - 1));
        }
      }
      state.attributes.assign(dst->getAttrs().begin(), dst->getAttrs().end());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed May 01 11:17:36 UTC 2024
    - 183.2K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

          if (!buffer_or) return false;
          buffers_.push_back(*buffer_or);
        } else {
          buffers_.push_back(empty_buffer_);
        }
    
        auto tensor_or =
            BuildTensor(value, tensor_name, buffer_index, quant_parameters);
        if (!tensor_or) return false;
        tensors.push_back(*tensor_or);
    
        return true;
      };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  5. tensorflow/compiler/jit/extract_outside_compilation_pass.cc

      std::vector<Node*> if_nodes, while_nodes, func_call_nodes;
      for (Node* n : g->nodes()) {
        if (n->IsIfNode()) {
          if_nodes.push_back(n);
        } else if (n->IsWhileNode()) {
          while_nodes.push_back(n);
        } else if (IsFunctionCall(*fld, *n)) {
          func_call_nodes.push_back(n);
        }
      }
    
      for (Node* n : func_call_nodes) {
        TF_RETURN_IF_ERROR(ExtractOutsideCompilationForFuncCallNode(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 12 06:33:33 UTC 2024
    - 104.7K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/shape_inference.cc

          window_dimensions_vec.push_back(
              window_dimensions.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < window_strides.size(); ++i) {
          window_strides_vec.push_back(
              window_strides.getValues<IntegerAttr>()[i].getInt());
        }
    
        for (auto i = 0; i < base_dilations.size(); ++i) {
          base_dilations_vec.push_back(
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Sat Jun 08 07:28:49 UTC 2024
    - 134.1K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

        if (s0_idx == -1) {
          r0.push_back(idx);
          if (s1_shape[s1_idx] == 1) r1.push_back(idx);
        } else if (s1_idx == -1) {
          r1.push_back(idx);
          if (s0_shape[s0_idx] == 1) r0.push_back(idx);
        } else if (s0_shape[s0_idx] != s1_shape[s1_idx]) {
          if (s0_shape[s0_idx] != bcasted_shape[idx])
            r0.push_back(idx);
          else
            r1.push_back(idx);
        } else if (s0_shape[s0_idx] == 1) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 146.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

        // Add the successor regions using the condition.
        regions.push_back(RegionSuccessor(condition ? &getThenRegion() : else_reg));
      } else {
        // If the condition isn't constant, both regions may be executed.
        regions.push_back(RegionSuccessor(&getThenRegion()));
        // If the else region does not exist, it is not a viable successor.
        if (else_reg) regions.push_back(RegionSuccessor(else_reg));
        return;
      }
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 09:41:17 UTC 2024
    - 169.2K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

            results[e.index()] = rewriter.create<TF::ConstOp>(op.getLoc(), result);
          } else {
            dynamic_indices.push_back(e.index());
            dynamic_inputs.push_back(e.value());
            result_types.push_back(op.getType(e.index()));
          }
        }
    
        if (dynamic_inputs.size() == op.getNumOperands()) {
          // Cannot canonicalize ShapeN if all inputs are dynamic.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/lite/stablehlo/transforms/uniform_quantized_stablehlo_to_tfl_pass.cc

        for (const int64_t padding_value : padding_values) {
          tfl_pad_values.push_back(CastI64ToI32(padding_value).value());
        }
        // For input feature dim.
        tfl_pad_values.push_back(0);
        tfl_pad_values.push_back(0);
    
        const auto input_tensor_type =
            input_value.getType().cast<RankedTensorType>();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Mon Apr 22 09:00:19 UTC 2024
    - 99.8K bytes
    - Viewed (0)
Back to top