MCPcopy Create free account
hub / github.com/10Ring/LAA-Net / encode

Method encode

models/networks/efficientNet.py:367–377  ·  view source on GitHub ↗

Encode a list of BlockArgs to a list of strings. Args: blocks_args (list[namedtuples]): A list of BlockArgs namedtuples of block args. Returns: block_strings: A list of strings, each string is a notation of block.

(blocks_args)

Source from the content-addressed store, hash-verified

365
366 @staticmethod
367 def encode(blocks_args):
368 """Encode a list of BlockArgs to a list of strings.
369 Args:
370 blocks_args (list[namedtuples]): A list of BlockArgs namedtuples of block args.
371 Returns:
372 block_strings: A list of strings, each string is a notation of block.
373 """
374 block_strings = []
375 for block in blocks_args:
376 block_strings.append(BlockDecoder._encode_block_string(block))
377 return block_strings
378
379
380class SwishImplementation(torch.autograd.Function):

Callers

nothing calls this directly

Calls 1

_encode_block_stringMethod · 0.80

Tested by

no test coverage detected